/* tema-verde.css - Tema TuTiradaPro (oscuro con acentos verdes).
   Se carga DESPUES de styles.css: redefine sus variables y agrega los componentes
   de la portada (carrusel) y de la quiniela. */

:root {
  color-scheme: dark;   /* barras de desplazamiento y controles nativos en oscuro; tema-claro.css lo cambia a light */
  --tt-bg: #0a0f0d;
  --tt-surface: #111a16;
  --tt-surface-2: #16221d;
  --tt-border: #22332b;
  --tt-text: #e8f0ec;
  --tt-strong: #fff;   /* titulos y negritas: blanco en oscuro, tinta en claro (tema-claro.css) */
  --tt-muted: #8fa39a;
  --tt-green: #22c55e;
  --tt-green-strong: #16a34a;
  --tt-green-deep: #0f3d26;
  --tt-green-soft: rgba(34, 197, 94, .12);
  --tt-local: #22c55e;
  --tt-dif: #f5b83d;
  --tt-visita: #4cb4f0;
  --tt-bad: #f0645a;
  --tt-radius: 16px;
  /* tokens extra para el tema claro/oscuro (tema-claro.css los redefine) */
  --tt-gold: #f5b83d;          /* acento VIP: rellenos, iconos, controles */
  --tt-gold-ink: #f5b83d;      /* texto en dorado (en claro se oscurece para que se lea) */
  --tt-match-top: rgba(34,197,94,.13);
  --tt-match-bottom: rgba(17,26,22,1);
  --tt-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.18);
  --tt-shadow-hover: 0 2px 4px rgba(0,0,0,.3), 0 14px 32px rgba(0,0,0,.28);

  /* variables de styles.css */
  --primary: #22c55e;
  --secondary: #111a16;
  --light: #8fa39a;
  --nfl-blue: #15803d;
  --nfl-red: #0f3d26;
}

body, .content { background: var(--tt-bg) !important; color: var(--tt-text); }
.bg-secondary, .sidebar, .content .navbar { background: var(--tt-surface) !important; border-color: var(--tt-border) !important; }
.content .navbar .sidebar-toggler { color: var(--tt-green) !important; }
.sidebar .navbar .navbar-nav .nav-link.active,
.sidebar .navbar .navbar-nav .nav-link:hover { color: var(--tt-green) !important; border-color: var(--tt-green) !important; background: var(--tt-green-soft) !important; }
.text-primary { color: var(--tt-green) !important; }
.btn-primary, .badge.bg-primary, .bg-primary { background: var(--tt-green-strong) !important; border-color: var(--tt-green-strong) !important; color: #fff !important; }
.btn-primary:hover { background: var(--tt-green) !important; border-color: var(--tt-green) !important; }
.back-to-top { background: var(--tt-green-strong) !important; border-color: var(--tt-green-strong) !important; }

/* ---------------------------------------------------------------- piezas comunes */
.tt-card { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); padding: 24px; }
.tt-eyebrow { color: var(--tt-green); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tt-muted { color: var(--tt-muted); }
.tt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--tt-green-soft); color: var(--tt-green); border: 1px solid rgba(34,197,94,.25); white-space: nowrap; }
.tt-pill.local { background: rgba(34,197,94,.14); color: var(--tt-local); border-color: rgba(34,197,94,.3); }
.tt-pill.dif { background: rgba(245,184,61,.14); color: var(--tt-dif); border-color: rgba(245,184,61,.3); }
.tt-pill.visita { background: rgba(76,180,240,.14); color: var(--tt-visita); border-color: rgba(76,180,240,.3); }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 12px;
  background: var(--tt-green-strong); color: #fff; font-weight: 700; text-decoration: none; border: 0; transition: background .15s, transform .15s; }
.tt-btn:hover { background: var(--tt-green); color: #fff; transform: translateY(-1px); }
.tt-btn.ghost { background: transparent; border: 1px solid var(--tt-border); color: var(--tt-text); }
.tt-btn.ghost:hover { border-color: var(--tt-green); color: var(--tt-green); }

/* logos */
.tt-logo { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.tt-logo.sm { width: 36px; height: 36px; }
.tt-logo.xs { width: 26px; height: 26px; }
.tt-logo-fallback { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 800;
  border: 2px solid rgba(255,255,255,.25); }

/* barra L / D / V */
.tt-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--tt-surface-2); }
.tt-bar span { display: block; height: 100%; }
.tt-bar .l { background: var(--tt-local); } .tt-bar .d { background: var(--tt-dif); } .tt-bar .v { background: var(--tt-visita); }
.tt-bar-legend { display: flex; justify-content: space-between; font-size: .8rem; margin-top: 6px; color: var(--tt-muted); font-variant-numeric: tabular-nums; }
.tt-bar-legend b { color: var(--tt-text); font-weight: 600; }

/* ---------------------------------------------------------------- portada */
.tt-hero { text-align: center; padding: 32px 16px 8px; }
.tt-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--tt-text); margin: 8px 0 6px; }
.tt-hero p { color: var(--tt-muted); margin: 0; }

.tt-carousel { position: relative; max-width: 1080px; margin: 24px auto 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "track track track" "prev dots next"; align-items: center; gap: 14px 12px; }
.tt-carousel .tt-track { grid-area: track; } .tt-carousel .prev { grid-area: prev; } .tt-carousel .next { grid-area: next; } .tt-carousel .tt-dots { grid-area: dots; margin-top: 0; }
.tt-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; }
.tt-track::-webkit-scrollbar { display: none; }
/* 3 fichas a la vista en escritorio, 2 en tablet, 1 (y un pedazo de la siguiente) en celular */
.tt-slide { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; min-width: 0; }
.tt-match { height: 100%; background: radial-gradient(120% 90% at 50% 0%, var(--tt-match-top) 0%, var(--tt-match-bottom) 60%), var(--tt-surface);
  border: 1px solid var(--tt-border); border-radius: 18px; padding: 16px 16px 14px; display: flex; flex-direction: column; }
.tt-match-meta { text-align: center; color: var(--tt-muted); font-size: .78rem; }
.tt-helmets { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 4px; }
.tt-helmets .h { flex: 1; display: flex; justify-content: center; }
.tt-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; font-weight: 800; color: var(--tt-text); font-size: 1rem; line-height: 1.15; }
.tt-score { text-align: center; margin: 8px 0 10px; }
.tt-score .num { font-size: 1.8rem; font-weight: 800; color: var(--tt-text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tt-score .lbl { font-size: .66rem; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .08em; }
.tt-vs { color: var(--tt-muted); font-weight: 700; margin: 0 6px; font-size: .85rem; }
.tt-pick-row { display: flex; justify-content: center; margin-bottom: 12px; }
.tt-bar-slot { margin-top: auto; }
.tt-bar-slot .tt-bar-legend { font-size: .72rem; }
.tt-result { text-align: center; font-size: .78rem; margin-top: 8px; }
.tt-result.ok { color: var(--tt-green); } .tt-result.bad { color: var(--tt-bad); }

/* cascos */
.tt-casco { width: 96px; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.tt-casco.flip { transform: scaleX(-1); }
.tt-casco.sm { width: 48px; height: 38px; }
.tt-casco.xs { width: 34px; height: 27px; filter: none; }

.tt-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--tt-border);
  background: var(--tt-surface-2); color: var(--tt-text); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.tt-nav:hover { border-color: var(--tt-green); color: var(--tt-green); }
.tt-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tt-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--tt-border); padding: 0; transition: width .2s, background .2s; }
.tt-dots button.on { width: 24px; background: var(--tt-green) !important; }
.tt-cta { text-align: center; margin: 24px 0 8px; }

.tt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tt-stat { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); padding: 18px 20px; }
.tt-stat .k { font-size: .8rem; color: var(--tt-muted); }
.tt-stat .v { font-size: 1.7rem; font-weight: 800; color: var(--tt-text); font-variant-numeric: tabular-nums; margin-top: 4px; }
.tt-stat .s { font-size: .78rem; color: var(--tt-muted); margin-top: 2px; }
.tt-stat .v.green { color: var(--tt-green); }

.tt-link { color: var(--tt-green); font-weight: 600; text-decoration: none; font-size: .9rem; }
.tt-link:hover { color: #4ade80; }
.tt-res-list { display: grid; gap: 8px; }
.tt-res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--tt-surface-2); border: 1px solid var(--tt-border); }
.tt-res .cascos { display: flex; gap: 2px; flex-shrink: 0; }
.tt-res .txt { min-width: 0; flex: 1; }
.tt-res .t { color: var(--tt-text); font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.tt-res .s { color: var(--tt-muted); font-size: .78rem; }
.tt-res .mark { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .8rem; }
.tt-res.ok .mark { background: var(--tt-green-soft); color: var(--tt-green); }
.tt-res.bad .mark { background: rgba(240,100,90,.12); color: var(--tt-bad); }

/* marca */
.sidebar .tt-brand { display: flex; align-items: center; gap: 10px; color: var(--tt-text) !important; font-weight: 800; font-size: 1.15rem; }
.sidebar .tt-brand img { width: 48px; height: 48px; border-radius: 12px; }
.tt-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; background: var(--tt-surface); border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius) var(--tt-radius) 0 0; padding: 20px 24px; }
.tt-footer .marca { display: flex; align-items: center; gap: 12px; }
.tt-footer .marca img { width: 40px; height: 40px; border-radius: 10px; }
.tt-footer .marca b { display: block; color: var(--tt-text); }
.tt-footer .marca span { color: var(--tt-muted); font-size: .78rem; }
.tt-footer .legal { color: var(--tt-muted); font-size: .76rem; margin: 0; text-align: center; }
.tt-footer .oncoffee { display: flex; align-items: center; gap: 8px; color: var(--tt-muted); font-size: .78rem; }
.tt-footer .oncoffee { text-decoration: none; }
.tt-footer .oncoffee img { width: 56px; height: 56px; }
.tt-footer .oncoffee b { color: var(--tt-text); }
.tt-footer .tt-18 { display: inline-block; font-weight: 700; color: var(--tt-text); border: 1px solid var(--tt-border); border-radius: 6px; padding: 0 5px; margin-right: 4px; font-size: .72rem; }
.tt-footer .tt-footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; border-top: 1px solid var(--tt-border);
  padding-top: 14px; font-size: .8rem; color: var(--tt-muted); }
.tt-footer .tt-footer-links a { color: var(--tt-muted); text-decoration: none; }
.tt-footer .tt-footer-links a:hover { color: var(--tt-green); text-decoration: underline; }
/* resumen en texto de la semana (lo escribe web_export; sirve a buscadores, IAs y lectores de pantalla) */
.tt-resumen summary { cursor: pointer; color: var(--tt-text); font-weight: 600; }
.tt-resumen ol { margin: 14px 0 0; padding-left: 22px; color: var(--tt-muted); font-size: .9rem; }
.tt-resumen li { margin-bottom: 6px; }
.tt-resumen li b { color: var(--tt-text); }
/* pronostico por partido (lo escribe web_export en la quiniela y el analisis) */
.tt-partidos-ligas h2 { color: var(--tt-text); font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.tt-partidos-ligas ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; }
.tt-partidos-ligas a { color: var(--tt-text); text-decoration: none; font-size: .92rem; }
.tt-partidos-ligas a:hover { color: var(--tt-green); text-decoration: underline; }
.tt-partidos-ligas a i { color: var(--tt-green); font-size: .75rem; margin-left: 4px; }
.tt-partidos-ligas .pie { margin: 12px 0 0; font-size: .85rem; }
/* historico: /nfl/ y /nfl/<S>/ (backend/nfl/historico.py) */
.tt-hist { display: grid; gap: 16px; max-width: 900px; }
.tt-hist-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tt-hist-cab h2 { color: var(--tt-text); font-size: 1.2rem; font-weight: 700; margin: 0; }
.tt-hist-cab h2 a { color: inherit; text-decoration: none; }
.tt-hist-cab h2 a:hover { color: var(--tt-green); }
.tt-hist-ligas { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 4px; font-size: .88rem; }
.tt-hist-ligas a { color: var(--tt-green); text-decoration: none; }
.tt-hist-ligas a:hover { text-decoration: underline; }
.tt-hist-ligas a i { margin-right: 4px; }
.tt-hist-partidos, .tt-hist-semanas { list-style: none; margin: 12px 0 0; padding: 0; }
.tt-hist-partidos li { display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--tt-border); font-size: .92rem; }
.tt-hist-partidos .eq a { color: var(--tt-text); text-decoration: none; }
.tt-hist-partidos .eq a:hover { color: var(--tt-green); text-decoration: underline; }
.tt-hist-partidos .tt-muted, .tt-hist-res { text-align: right; font-size: .85rem; }
.tt-hist-res.ok { color: var(--tt-local); }
.tt-hist-res.mal { color: #f87171; }
.tt-hist-semanas li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--tt-border); }
.tt-hist-semanas li > a { color: var(--tt-text); font-weight: 700; text-decoration: none; min-width: 90px; }
.tt-hist-semanas li > a:hover { color: var(--tt-green); }
.tt-hist-semanas .tt-hist-ligas { margin: 0; flex-basis: 100%; }
@media (max-width: 575px) { .tt-hist-partidos li { grid-template-columns: 1fr auto; } .tt-hist-partidos li > :last-child { grid-column: 1 / -1; text-align: left; } }
/* paginas legales */
.tt-legal { max-width: 860px; margin: 0 auto; line-height: 1.65; color: var(--tt-muted); }
.tt-legal h1 { color: var(--tt-text); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0 6px; }
.tt-legal h2 { color: var(--tt-text); font-size: 1.12rem; font-weight: 700; margin: 28px 0 10px; }
.tt-legal strong, .tt-legal b { color: var(--tt-text); }
.tt-legal a { color: var(--tt-green); }
.tt-legal ul { padding-left: 22px; }
.tt-legal .aviso { background: var(--tt-green-soft); border: 1px solid var(--tt-green-deep); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.tt-legal .pendiente { background: rgba(245, 184, 61, .15); color: var(--tt-dif); border-radius: 4px; padding: 0 4px; }
.tt-partners { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--tt-surface-2); border: 1px solid var(--tt-border);
  border-radius: 14px; padding: 10px 16px; color: var(--tt-muted); font-size: .85rem; }
.tt-partners img.protouch { height: 46px; width: auto; }
.tt-partners img.tulotero { height: 30px; width: auto; border-radius: 6px; }
.tt-partners b { color: var(--tt-text); }

/* ---------------------------------------------------------------- quiniela */
.tt-ticket-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tt-q { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.tt-q th { font-size: .72rem; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 0 10px; text-align: center; }
.tt-q th.team { text-align: left; }
.tt-q td { background: var(--tt-surface); padding: 12px 10px; border-top: 1px solid var(--tt-border); border-bottom: 1px solid var(--tt-border); vertical-align: middle; }
.tt-q td:first-child { border-left: 1px solid var(--tt-border); border-radius: 12px 0 0 12px; }
.tt-q td:last-child { border-right: 1px solid var(--tt-border); border-radius: 0 12px 12px 0; }
.tt-q .tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-q .tm .nick { font-weight: 700; color: var(--tt-text); white-space: nowrap; }
.tt-q .tm .city { font-size: .75rem; color: var(--tt-muted); }
.tt-q .opt { text-align: center; width: 64px; }
.tt-chk { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--tt-border);
  color: var(--tt-muted); font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tt-chk.on.l { background: var(--tt-local); border-color: var(--tt-local); color: #062814; }
.tt-chk.on.d { background: var(--tt-dif); border-color: var(--tt-dif); color: #2b1d00; }
.tt-chk.on.v { background: var(--tt-visita); border-color: var(--tt-visita); color: #032234; }
.tt-chk.hit { outline: 2px solid var(--tt-strong); outline-offset: 2px; }
.tt-q .prob { min-width: 200px; }
.tt-q .score { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-q .tipo { text-align: center; }
.tt-tipo { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.tt-tipo.sencillo { color: var(--tt-muted); border: 1px solid var(--tt-border); }
.tt-tipo.doble { color: var(--tt-dif); background: rgba(245,184,61,.12); }
.tt-tipo.triple { color: var(--tt-green); background: var(--tt-green-soft); }
.tt-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--tt-muted); }
.tt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.tt-td-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tt-td { background: var(--tt-surface-2); border: 1px solid var(--tt-border); border-radius: 14px; padding: 14px 16px; }
.tt-td table { width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.tt-td th { color: var(--tt-muted); font-weight: 600; text-align: center; padding-bottom: 6px; }
.tt-td td { text-align: center; padding: 4px 0; color: var(--tt-text); }
.tt-td td:first-child, .tt-td th:first-child { text-align: left; }
.tt-td td.max { color: var(--tt-green); font-weight: 800; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199px) {
  .tt-slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 991px) {
  .tt-footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }   /* en tablet y celular se desliza con el dedo o con los puntos */
  .tt-stats, .tt-ticket-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tt-q thead { display: none; }
  .tt-q, .tt-q tbody { display: block; }
  .tt-q tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 6px; align-items: center; background: var(--tt-surface);
    border: 1px solid var(--tt-border); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
  .tt-q td { background: none; border: 0 !important; padding: 0; border-radius: 0 !important; }
  .tt-q td.local { grid-column: 1; grid-row: 1; } .tt-q td.visita { grid-column: 1; grid-row: 2; }
  .tt-q td.opt { grid-row: 1 / span 2; width: auto; }
  .tt-q td.prob, .tt-q td.score, .tt-q td.tipo { grid-column: 1 / -1; }
  .tt-q td.score, .tt-q td.tipo { text-align: left; }
  .tt-q td.score::before { content: 'Marcador esperado: '; color: var(--tt-muted); font-weight: 400; }
  .tt-q .prob { min-width: 0; }
  .tt-q .tm .nick { white-space: normal; }
  .tt-q td.opt .tt-chk { width: 40px; }
}
@media (max-width: 575px) {
  .tt-slide { flex-basis: 84%; scroll-snap-align: center; }
  .tt-track { gap: 12px; }
  .tt-stats, .tt-ticket-head { gap: 10px; }
  .tt-stat .v { font-size: 1.35rem; }
}

/* quiniela: los partidos del Protouch van enmarcados en verde TuLotero; abajo los que no entran */
.tt-q tbody.tt-pt-box { outline: 2px solid var(--tt-tulotero, #3ab54a); outline-offset: 2px; border-radius: 14px; }
.tt-q tr.tt-grupo td { background: none; border: 0; border-radius: 0; padding: 14px 10px 2px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--tt-muted); }
.tt-q tr.tt-grupo.pt td { color: var(--tt-tulotero, #3ab54a); padding-top: 8px; }
.tt-q tbody.tt-extra tr.tt-grupo td { padding-top: 22px; }
@media (max-width: 767px) {
  .tt-q tbody.tt-pt-box { padding: 6px; }
  .tt-q tr.tt-grupo { display: block; background: none; border: 0; padding: 6px 2px 0; margin-bottom: 6px; }
  .tt-q tr.tt-grupo td { display: block; padding: 0; }
}

/* analisis: tabla de modelos */
.tt-models td.opt { text-align: center; }
@media (max-width: 767px) {
  /* en celular los modelos van de 2 en 2, cada uno con su titulo (no caben 4 por fila) */
  .tt-models tr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tt-models td:first-child { grid-column: 1 / -1; }
  .tt-models td.opt { grid-row: auto; min-width: 0; padding: 8px 6px !important; border-radius: 10px !important;
    background: var(--tt-surface-2); overflow-wrap: anywhere; }
  .tt-models td.opt * { white-space: normal !important; }
  .tt-models td.opt ul { min-width: 0 !important; }
  .tt-models > tbody > tr:not(.tt-st) > td.opt::before { display: block; font-size: .68rem; font-weight: 600; color: var(--tt-muted);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(2)::before { content: 'EPA'; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(3)::before { content: 'Monte Carlo'; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(4)::before { content: 'Modelo ML'; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(5)::before { content: 'Casas de apuestas'; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(6)::before { content: 'Final'; }
  .tt-models > tbody > tr:not(.tt-st) > td:nth-child(7)::before { content: 'Seguridad'; }
}
@media print {
  .sidebar, .content .navbar, .back-to-top, .tt-btn { display: none !important; }
  .content { margin-left: 0 !important; width: 100% !important; }
}

/* resultados: selector de semanas, filtro y tarjetas */
.tt-weeks { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.tt-weeks button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 10px; border-radius: 12px;
  background: var(--tt-surface-2); border: 1px solid var(--tt-border); color: var(--tt-text); font-weight: 700; font-size: .9rem; }
.tt-weeks button small { font-size: .72rem; color: var(--tt-muted); font-weight: 600; }
.tt-weeks button small.up { color: var(--tt-green); }
.tt-weeks button:hover { border-color: var(--tt-green); }
.tt-weeks button.on { background: var(--tt-green-strong); border-color: var(--tt-green-strong); color: #fff; }
.tt-weeks button.on small { color: #dcfce7; }
.tt-seg { display: inline-flex; background: var(--tt-surface-2); border: 1px solid var(--tt-border); border-radius: 10px; padding: 3px; }
.tt-seg button { border: 0; background: none; color: var(--tt-muted); padding: 6px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.tt-seg button.on { background: var(--tt-green-soft); color: var(--tt-green); }
.tt-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.tt-btn:disabled { opacity: .4; pointer-events: none; }
.c-l { color: var(--tt-local); } .c-d { color: var(--tt-dif); } .c-v { color: var(--tt-visita); }
@media (max-width: 575px) { .tt-res-grid { grid-template-columns: 1fr; } }

/* promo TuLotero */
.tt-promo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; padding: 24px 28px; border-radius: var(--tt-radius);
  background: linear-gradient(120deg, #1f9e5a 0%, #22b573 55%, #16a34a 100%); color: #fff; position: relative; overflow: hidden; }
.tt-promo::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tt-promo .monto { text-align: center; line-height: 1; }
.tt-promo .monto span { display: block; font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; }
.tt-promo .monto small { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tt-promo h4 { color: #fff; font-weight: 800; margin: 2px 0 4px; }
.tt-promo p { margin: 0 0 10px; color: #ecfdf5; font-size: .92rem; }
.tt-promo .codigo { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #14532d; border-radius: 10px; padding: 6px 6px 6px 12px; }
.tt-promo .codigo span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #15803d; font-weight: 700; }
.tt-promo .codigo b { font-size: 1.2rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.tt-promo .codigo button { border: 0; background: #dcfce7; color: #14532d; font-weight: 700; font-size: .8rem; border-radius: 8px; padding: 6px 10px; }
.tt-promo .cta { position: relative; z-index: 1; background: #fff; color: #15803d; font-weight: 800; padding: 14px 22px; border-radius: 12px; text-decoration: none; white-space: nowrap; }
.tt-promo .cta:hover { background: #f0fdf4; color: #14532d; }
.tt-promo .nota { grid-column: 1 / -1; font-size: .72rem; color: #dcfce7; opacity: .9; }
@media (max-width: 767px) {
  .tt-promo { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .tt-promo .cta { justify-self: center; }
}
@media print { .tt-promo { display: none !important; } }

/* ---------- Portada: imagen de encabezado ---------- */
.tt-hero-img { position: relative; margin: 0 auto; max-width: 1100px; border-radius: 22px; overflow: hidden; border: 1px solid var(--tt-border);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(34,197,94,.08); background: var(--tt-surface); }
.tt-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; object-position: 50% 100%; }
.tt-hero-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18%; background: linear-gradient(to bottom, rgba(10,15,13,0), rgba(10,15,13,.55)); pointer-events: none; }
.tt-hero-img + .tt-hero { padding-top: 20px; }

/* ---------- Portada: graficas ---------- */
.tt-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
.tt-chart-card { display: flex; flex-direction: column; padding: 20px; }
.tt-chart-card h6 { font-weight: 700; }
.tt-chart-box { position: relative; flex: 1; min-height: 220px; margin-top: 8px; }
.tt-gauge { position: relative; height: 170px; margin-top: 8px; }
.tt-gauge.dona { height: 190px; }
.tt-gauge-c { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; pointer-events: none; }
.tt-gauge.dona .tt-gauge-c { bottom: auto; top: 50%; transform: translateY(-50%); }
.tt-gauge-c b { display: block; font-size: 2.1rem; font-weight: 800; color: var(--tt-text); line-height: 1; font-variant-numeric: tabular-nums; }
.tt-gauge-c span { font-size: .78rem; color: var(--tt-green); font-weight: 600; }
.tt-gauge.dona .tt-gauge-c span { display: block; max-width: 110px; margin: 2px auto 0; color: var(--tt-muted); font-weight: 500; line-height: 1.2; }
.tt-gauge-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 12px; font-size: .8rem; color: var(--tt-muted); }
.tt-gauge-legend b { color: var(--tt-text); }
.tt-gauge-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot.ok { background: var(--tt-green); } .dot.az { background: #3a4d44; } .dot.s { background: var(--tt-green); } .dot.d { background: var(--tt-dif); } .dot.t { background: var(--tt-visita); }
.tt-clases { display: grid; gap: 18px; margin-top: 14px; }
.tt-clase .top { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.tt-clase .top .n { color: var(--tt-muted); font-size: .8rem; }
.tt-clase .top .p { font-size: 1.15rem; font-weight: 800; color: var(--tt-text); font-variant-numeric: tabular-nums; margin-left: 8px; }
.tt-clase .track { position: relative; height: 12px; border-radius: 999px; background: var(--tt-surface-2); margin-top: 6px; }
.tt-clase .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; width: 0; transition: width 1s ease; }
.tt-clase .fill.l { background: var(--tt-local); } .tt-clase .fill.d { background: var(--tt-dif); } .tt-clase .fill.v { background: var(--tt-visita); }
.tt-clase .azar { position: absolute; top: -4px; bottom: -4px; left: 33.3%; border-left: 2px dashed rgba(240,100,90,.75); }
@media (max-width: 991px) {
  .tt-charts { grid-template-columns: minmax(0, 1fr); }
  .tt-hero-img { border-radius: 16px; }
  .tt-hero-img img { aspect-ratio: 16 / 10; object-position: 50% 100%; }
}
@media (max-width: 575px) { .tt-chart-box { min-height: 200px; } }
@media print { .tt-hero-img, #tt-graficas { display: none !important; } }
/* Menu lateral: cada opcion en una sola linea */
.sidebar .navbar .navbar-nav .nav-link { display: flex; align-items: center; white-space: nowrap; font-size: .92rem; }
.sidebar .navbar .navbar-nav .nav-link span { margin-left: .25em; }

/* ---------- Ajustes nov 2026: letra y cascos mas grandes, Protouch arriba, en vivo, clima ---------- */
html { font-size: 17px; }
.tt-casco.sm { width: 62px; height: 49px; }
.tt-casco.xs { width: 40px; height: 32px; }
.tt-q .tm .nick { font-size: 1.02rem; }
.tt-q .tm .city { font-size: .8rem; }
.tt-q .score { font-size: 1.05rem; }
.tt-models td { font-size: 1rem; }
.tt-models .tt-casco.sm { width: 70px; height: 55px; }
.tt-models .tm .lg .tt-casco + .tt-casco { margin-left: -10px; }

/* Protouch arriba, mas visible */
.tt-partners.big { padding: 14px 20px; gap: 20px; font-size: .95rem; background: linear-gradient(90deg, rgba(34,197,94,.10), rgba(34,197,94,0) 70%), var(--tt-surface-2); }
.tt-partners.big img.protouch { height: 84px; }
.tt-partners.big img.tulotero { height: 44px; border-radius: 8px; }
.tt-partners .tt-partners-t { display: block; font-size: 1.2rem; font-weight: 800; color: var(--tt-text); margin-bottom: 2px; }

/* Jugada del doble / triple (L-D) */
.tt-jugada { margin-top: 4px; font-weight: 800; font-size: .95rem; letter-spacing: .08em; color: var(--tt-text); }

/* Resultado real / en vivo */
.tt-real { font-size: .78rem; font-weight: 500; color: var(--tt-muted); margin-top: 2px; }
.tt-real b { color: var(--tt-text); }
.tt-real.vivo { color: var(--tt-bad); font-weight: 700; }
.tt-real.vivo .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tt-bad); margin-right: 5px; vertical-align: 1px; animation: tt-pulso 1.2s infinite; }
@keyframes tt-pulso { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .tt-real.vivo .dot { animation: none; } }
.tt-chk.va { outline: 2px dashed var(--tt-bad); outline-offset: 2px; }

/* Estadio y clima */
.tt-clima { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: .78rem; color: var(--tt-muted); }
.tt-clima i { color: var(--tt-green); margin-right: 3px; }

/* Ficha final del carrusel: ver el resto */
.tt-mas { align-items: center; justify-content: center; gap: 8px; text-align: center; text-decoration: none; min-height: 100%; }
.tt-mas .n { font-size: 3rem; font-weight: 800; color: var(--tt-green); line-height: 1; }
.tt-mas .t { color: var(--tt-muted); margin-bottom: 10px; }
.tt-mas:hover { border-color: var(--tt-green); }

@media (max-width: 767px) {
  html { font-size: 16px; }
  .tt-partners.big { padding: 12px 14px; gap: 12px; }
  .tt-partners.big img.protouch { height: 60px; }
  .tt-partners.big img.tulotero { margin-left: 0 !important; }
}
/* La barra de probabilidades repite los % de las casillas: se oculta cuando no cabe */
.tt-q td.tipo { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1599px) { .tt-q th.prob, .tt-q td.prob { display: none; } }
/* .score de la plantilla vieja (styles.css) lo pintaba como pastilla flotante */
.tt-q td.score { display: table-cell; border-radius: 0; box-shadow: none; padding: 12px 10px; min-width: 0; color: var(--tt-text); font-size: 1.05rem; }
@media (max-width: 767px) { .tt-q td.score { display: block; padding: 0; background: none; } .tt-q td.tipo .tt-jugada { display: inline-block; margin: 0 0 0 8px; } }
@media (max-width: 767px) {
  .tt-q .tt-casco.sm { width: 44px; height: 35px; }
  .tt-q td.opt .tt-chk { width: 36px; height: 36px; font-size: .78rem; }
  .tt-q .tm { gap: 8px; }
  .tt-q .tm .nick { font-size: .95rem; }
}

/* Primer touchdown: grande y centrado */
.tt-td-card { text-align: center; }
.tt-td-card h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; margin: 6px 0 6px; }
.tt-td-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.tt-td { padding: 20px 24px; }
.tt-td-head { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.3rem; color: var(--tt-text); }
.tt-td-head .lg { display: flex; }
.tt-td-pick { margin: 8px 0 14px; font-size: 1.1rem; color: var(--tt-muted); }
.tt-td-pick b { color: var(--tt-green); }
.tt-td table { font-size: 1.15rem; max-width: 760px; margin: 0 auto; }
.tt-td th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 10px; }
.tt-td td { padding: 10px 6px; border-top: 1px solid var(--tt-border); }
.tt-td td:first-child { font-weight: 700; white-space: nowrap; }
.tt-td td .eq { display: inline-flex; vertical-align: middle; margin-right: 8px; }
.tt-td td.max { color: #062814; }
.tt-td td.max { background: var(--tt-green); border-radius: 10px; }
@media (max-width: 575px) {
  .tt-td-grid { grid-template-columns: minmax(0, 1fr); }
  .tt-td { padding: 14px 10px; }
  .tt-td table { font-size: .95rem; }
  .tt-td th { font-size: .62rem; }
  .tt-td td .eq { display: none; }
}

/* Quiniela: local alineado a la derecha (casco junto a las casillas) para que L/D/V queden al centro */
.tt-q th.team.local { text-align: right; }
.tt-q td.local .tm { flex-direction: row-reverse; text-align: right; }
.tt-q td.local, .tt-q td.visita { width: 26%; }
.tt-q th.opt-h { width: 64px; line-height: 1.15; font-size: .62rem; }
.tt-q th.opt-h b { display: block; font-size: 1rem; color: var(--tt-text); letter-spacing: 0; }
@media (min-width: 768px) and (max-width: 1279px) {
  .tt-q td { padding: 10px 6px; }
  .tt-q .tt-casco.sm { width: 46px; height: 36px; }
  .tt-q td.opt .tt-chk { width: 36px; height: 36px; font-size: .8rem; }
  .tt-q .tm { gap: 8px; }
  .tt-q .tm .nick { font-size: .95rem; white-space: normal; }
  .tt-q th.opt-h { width: 48px; }
  .tt-q td.opt { width: 48px; }
}
@media (max-width: 767px) {
  .tt-q td.local .tm { flex-direction: row; text-align: left; }
  .tt-q td.local, .tt-q td.visita { width: auto; }
}
/* Casco y nombre juntos hacia afuera; las casillas L/D/V quedan al centro */
@media (min-width: 768px) {
  .tt-q td.local .tm { flex-direction: row; justify-content: flex-start; }
  .tt-q td.local .tm > div { text-align: left; }
  .tt-q td.visita .tm { flex-direction: row-reverse; justify-content: flex-start; }
  .tt-q td.visita .tm > div { text-align: right; }
  .tt-q td.local { padding-left: 18px; } .tt-q td.visita { padding-right: 18px; }
  .tt-q th.team.local { text-align: left; padding-left: 18px; }
  .tt-q th.team.visita { text-align: right; padding-right: 18px; }
}

/* Aviso de proximamente (version Pro) */
.tt-pronto { display: flex; align-items: center; gap: 18px; border: 1px dashed rgba(34,197,94,.45); border-radius: var(--tt-radius);
  padding: 18px 22px; background: linear-gradient(90deg, rgba(34,197,94,.08), rgba(34,197,94,0) 80%), var(--tt-surface); }
.tt-pronto .ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(34,197,94,.15); color: var(--tt-green); font-size: 1.4rem; }
.tt-pronto b { display: block; color: var(--tt-text); font-size: 1.1rem; margin: 2px 0; }
.tt-pronto p { margin: 0; color: var(--tt-muted); font-size: .9rem; }
@media print { .tt-pronto { display: none; } }

/* Menu en celular: components.css lo esconde con transform y solo lo muestra con .show; app.js usa .open */
@media (max-width: 991.98px) {
  .sidebar { z-index: 1050; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .sidebar.open { transform: none !important; }
}
@media (max-width: 575.98px) { .sidebar { width: 82%; max-width: 300px; } }

/* analisis: estadisticas de la temporada debajo de cada partido (analisis-semana.js) */
.tt-rec { font-size: .72rem; color: var(--tt-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tt-rec span { opacity: .7; }
.tt-q .tm .tt-cas { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.tt-q .tm .tt-cas .tt-rec { font-size: .68rem; line-height: 1; }
.tt-st-btn { padding: 8px 16px; font-size: .85rem; margin-bottom: 10px; }
.tt-models tr.tt-st td { padding: 0; background: var(--tt-surface-2); border-radius: 12px !important; border: 1px solid var(--tt-border); }
.tt-st details > summary { cursor: pointer; list-style: none; padding: 9px 14px; font-size: .85rem; font-weight: 600; color: var(--tt-green); }
.tt-st details > summary::-webkit-details-marker { display: none; }
.tt-st details > summary::after { content: '▸'; float: right; color: var(--tt-muted); transition: transform .15s; }
.tt-st details[open] > summary::after { transform: rotate(90deg); }
.tt-st details > summary .tt-muted { font-weight: 400; margin-left: 4px; }
.tt-st-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; padding: 4px 14px 14px; }
.tt-st-tabla { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.tt-st-tabla td, .tt-st-tabla th { padding: 5px 6px; border-bottom: 1px solid var(--tt-border); background: none !important; border-radius: 0 !important; }
.tt-st-tabla td { text-align: center; color: var(--tt-text); font-weight: 700; width: 26%; white-space: nowrap; border-left: 0 !important; border-right: 0 !important; }
.tt-st-tabla th { text-align: center; color: var(--tt-muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .78rem; }
.tt-st-tabla thead td { color: var(--tt-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.tt-st-tabla td.mejor { color: var(--tt-green); }
.tt-st-jugs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-st-eqn { font-size: .78rem; font-weight: 600; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.tt-st-jug { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--tt-border); font-size: .8rem; text-align: left; }
.tt-st-jug i { color: var(--tt-green); margin-top: 3px; width: 14px; }
.tt-st-jug .t { font-size: .7rem; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .05em; }
.tt-st-jug .n { font-weight: 700; color: var(--tt-text); font-size: .9rem; }
@media (max-width: 991px) { .tt-st-body { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .tt-models tr.tt-st { display: block; padding: 0; margin-top: -4px; border: 0; background: none; }
  .tt-models tr.tt-st td { display: block; }
  .tt-st-jugs { grid-template-columns: 1fr; }
  .tt-rec { white-space: normal; }
  /* la tabla interna no usa el formato de tarjeta del celular */
  .tt-q .tt-st-tabla { display: table; } .tt-q .tt-st-tabla thead { display: table-header-group; } .tt-q .tt-st-tabla tbody { display: table-row-group; }
  .tt-q .tt-st-tabla tr { display: table-row; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; }
  .tt-q .tt-st-tabla td, .tt-q .tt-st-tabla th { display: table-cell; padding: 5px 4px; border-bottom: 1px solid var(--tt-border) !important; }
  .tt-q .tt-st details > summary { padding: 9px 12px; }
  .tt-q .tt-st-tabla td { width: auto; font-size: .82rem; }
  .tt-q .tt-st-tabla th { font-size: .74rem; }
  .tt-st-body { padding: 4px 10px 12px; }
}
@media print { .tt-st-btn { display: none; } .tt-st details { display: block; } }

/* resultados: por que el porcentaje no es mas alto */
.tt-porque p, .tt-porque li { color: var(--tt-text); line-height: 1.6; max-width: 860px; }
.tt-porque ul { padding-left: 1.2rem; }
.tt-porque li { margin-bottom: 6px; }
.tt-porque-aviso { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--tt-green-soft); border: 1px solid rgba(34,197,94,.25); color: var(--tt-text); max-width: 860px; }
.tt-porque-aviso i { color: var(--tt-green); margin-top: 4px; }
.tt-porque-aviso a { color: var(--tt-green); font-weight: 600; }

/* analisis: boton ? de cada modelo y su globo de ayuda */
.tt-ayuda { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0;
  border-radius: 50%; border: 1px solid var(--tt-green); background: transparent; color: var(--tt-green); font-size: .7rem; font-weight: 800;
  line-height: 1; cursor: pointer; vertical-align: middle; }
.tt-ayuda:hover, .tt-ayuda:focus-visible { background: var(--tt-green); color: #fff; outline: none; }
.tt-ayuda-cel { display: none; }
.tt-tip { position: absolute; z-index: 2000; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 12px;
  background: var(--tt-surface-2); border: 1px solid var(--tt-green); color: var(--tt-text); font-size: .85rem; line-height: 1.5;
  text-align: left; text-transform: none; letter-spacing: 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tt-tip b { color: var(--tt-green); }
.tt-tip p { margin: 0 0 8px; } .tt-tip p:last-child { margin: 0; }
@media (max-width: 767px) {
  .tt-ayuda-cel { display: inline-flex; width: auto; height: auto; gap: 6px; padding: 6px 12px; border-radius: 999px; margin: 0 0 10px; font-size: .8rem; }
  .tt-ayuda-cel span { font-weight: 600; }
}
@media print { .tt-ayuda, .tt-tip { display: none !important; } }

/* ===== Sesion (app.js) ===== */
.tt-sesion { position: relative; margin-left: 12px; display: flex; align-items: center; }
.tt-entrar { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--tt-green); color: var(--tt-green); font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.tt-entrar:hover { background: var(--tt-green); color: #06120c; }
.tt-entrar i { font-size: 1rem; }
.tt-user { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 999px; }
.tt-user:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 2px; }
.tt-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--tt-green); color: #06120c; font-weight: 800; font-size: .85rem; overflow: hidden; border: 2px solid rgba(34,197,94,.5); }
.tt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tt-user-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 1050; padding: 12px;
  background: #0f1a15; border: 1px solid rgba(143,163,154,.25); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.tt-user-menu .n { font-weight: 700; color: var(--tt-text); }
.tt-user-menu .e { font-size: .78rem; color: var(--tt-muted); margin-bottom: 10px; word-break: break-all; }
.tt-salir { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(143,163,154,.25);
  color: var(--tt-text); border-radius: 8px; padding: 7px 10px; font-size: .85rem; cursor: pointer; }
.tt-salir:hover { border-color: var(--tt-bad, #ef4444); color: var(--tt-bad, #ef4444); }
.tt-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; max-width: calc(100% - 32px);
  background: #0f1a15; color: var(--tt-text); border: 1px solid var(--tt-bad, #ef4444); border-radius: 10px; padding: 10px 16px; font-size: .9rem; }
/* Estadisticas bloqueadas sin sesion (analisis-semana.js) */
.tt-st-entrar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--tt-green); font-weight: 600;
  text-decoration: none; font-size: .85rem; }
.tt-st-entrar:hover { text-decoration: underline; }
@media (max-width: 575px) { .tt-entrar span { display: none; } .tt-entrar { padding: 6px 10px; } }
/* Ventana "Registrate gratis con Google" (app.js) */
.tt-modal { box-sizing: border-box; margin: auto; border: 1px solid rgba(34,197,94,.35); border-radius: 16px; padding: 28px 24px 20px; width: min(420px, calc(100% - 32px));
  background: #0f1a15; color: var(--tt-text); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.tt-modal::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(2px); }
.tt-modal h2 { font-size: 1.25rem; font-weight: 800; color: var(--tt-text); margin: 10px 0 8px; }
.tt-modal p { color: var(--tt-muted); font-size: .9rem; margin-bottom: 18px; }
.tt-modal-ic { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,.15); color: var(--tt-green); font-size: 1.4rem; }
.tt-modal-x { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: var(--tt-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.tt-modal-x:hover { color: var(--tt-text); }
.tt-google { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: 999px;
  background: #fff; color: #1f1f1f; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid #dadce0; }
.tt-google:hover { background: #f2f2f2; color: #1f1f1f; }
.tt-modal .tt-modal-nota { font-size: .75rem; margin: 14px 0 0; }
.tt-modal-nota a { color: var(--tt-green); }
.tt-user-menu .tt-admin { text-decoration: none; margin-bottom: 8px; }
.tt-user-menu .tt-admin:hover { border-color: var(--tt-green); color: var(--tt-green); }

/* ---------- Casas de apuestas (ligas de afiliado, js/afiliados.js) ---------- */
.tt-casas { border: 1px solid var(--tt-border); border-radius: var(--tt-radius); background: var(--tt-surface); padding: 22px 24px; }
.tt-casas-head b { display: block; color: var(--tt-text); font-size: 1.1rem; margin: 2px 0 16px; }
.tt-casas-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tt-casa-btn { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px; background: var(--casa); color: var(--casa-texto); text-decoration: none;
  box-shadow: 0 6px 18px -8px var(--casa); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  animation: tt-casa-latido 3.6s ease-in-out var(--retraso, 0s) infinite; }
.tt-casa-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
  transform: translateX(-120%); animation: tt-casa-brillo 3.6s ease-in-out var(--retraso, 0s) infinite; }
.tt-casa-btn:hover, .tt-casa-btn:focus-visible { color: var(--casa-texto); transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px -10px var(--casa); filter: saturate(1.15); animation-play-state: paused; }
.tt-casa-btn:focus-visible { outline: 3px solid var(--tt-text); outline-offset: 3px; }
.tt-casa-btn .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0,0,0,.18); font-size: 1.2rem; transition: transform .3s ease; }
.tt-casa-btn:hover .ic { transform: rotate(-18deg); }
.tt-casa-btn .txt { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.25; }
.tt-casa-btn .txt b { font-size: 1.05rem; }
.tt-casa-btn .txt small { opacity: .85; font-size: .78rem; }
.tt-casa-btn .flecha { transition: transform .18s ease; }
.tt-casa-btn:hover .flecha { transform: translateX(5px); }
.tt-casas-aviso { margin: 14px 0 0; color: var(--tt-muted); font-size: .8rem; }
.tt-casas-aviso a { color: var(--tt-green); }
.tt-casas .tt-18 { display: inline-block; font-weight: 700; color: var(--tt-text); border: 1px solid var(--tt-border); border-radius: 6px; padding: 0 5px; margin-right: 4px; font-size: .72rem; }
@keyframes tt-casa-brillo { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes tt-casa-latido { 0%, 100% { box-shadow: 0 6px 18px -8px var(--casa); } 50% { box-shadow: 0 6px 26px -4px var(--casa); } }
@media (prefers-reduced-motion: reduce) { .tt-casa-btn, .tt-casa-btn::after { animation: none; } .tt-casa-btn:hover { transform: none; } }
@media print { .tt-casas { display: none !important; } }

/* Notas semanales: ver notas.css */

/* ---------------------------------------------------------------- pagina de un partido (backend/nfl/notas/partidos.py) */
.tt-partido h2 { color: var(--tt-strong); font-size: 1.25rem; font-weight: 700; margin: 26px 0 10px; }
.tt-partido-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 18px;
  background: var(--tt-surface-2); border: 1px solid var(--tt-border); border-radius: 14px; padding: 16px 10px; }
.tt-partido-eq { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.tt-partido-eq b { color: var(--tt-strong); font-size: 1.15rem; }
.tt-partido-eq span { color: var(--tt-muted); font-size: .8rem; }
.tt-partido-eq em { font-style: normal; color: var(--tt-green); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tt-partido-vs { color: var(--tt-muted); font-weight: 800; font-size: 1.4rem; }
.tt-partido-marcador { display: flex; align-items: center; gap: 10px; color: var(--tt-strong); font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
.tt-partido-marcador small { color: var(--tt-muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.tt-partido-res { border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.tt-partido-res.ok { background: rgba(34,197,94,.12); color: var(--tt-green); }
.tt-partido-res.mal { background: rgba(240,100,90,.12); color: var(--tt-bad); }
.tt-partido-res b { color: var(--tt-strong); }
.tt-partido-barras { display: grid; gap: 8px; margin: 12px 0; }
.tt-partido-barra { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 48px; align-items: center; gap: 10px; font-size: .88rem; color: var(--tt-muted); }
.tt-partido-barra div { height: 12px; background: var(--tt-surface-2); border-radius: 99px; overflow: hidden; }
.tt-partido-barra i { display: block; height: 100%; border-radius: 99px; background: var(--tt-muted); }
.tt-partido-barra.local i { background: var(--tt-local); } .tt-partido-barra.dif i { background: var(--tt-dif); } .tt-partido-barra.visita i { background: var(--tt-visita); }
.tt-partido-barra.pick span, .tt-partido-barra.pick b { color: var(--tt-strong); font-weight: 700; }
.tt-partido-datos { color: var(--tt-text); padding-left: 1.1rem; margin: 0; line-height: 1.8; }
.tt-partido-datos b { color: var(--tt-strong); }
@media (max-width: 560px) { .tt-partido-barra { grid-template-columns: 1fr 44px; } .tt-partido-barra span { grid-column: 1 / -1; } .tt-partido-eq b { font-size: 1rem; } }
.tt-link-partido { display: inline-block; margin-top: 4px; font-size: .78rem; color: var(--tt-green); text-decoration: none; font-weight: 600; }
/* Arma tu boleto (quiniela): sliders de dobles y triples */
.tt-arma { border: 1px solid var(--tt-border); border-radius: 14px; padding: 14px 16px; margin: 6px 0 14px; background: rgba(34,197,94,.05); }
.tt-arma-t { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 10px; }
.tt-arma-t b { color: var(--tt-strong); }
.tt-arma-t .tt-muted { font-size: .85rem; }
.tt-arma-c { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.tt-arma-c label { display: flex; flex-direction: column; gap: 4px; min-width: 170px; flex: 1 1 170px; color: var(--tt-muted); font-size: .85rem; font-weight: 600; }
.tt-arma-c label b { color: var(--tt-green); font-size: 1.1rem; margin-left: 6px; }
.tt-arma-c input[type=range] { width: 100%; accent-color: var(--tt-green); }
.tt-arma-costo { display: flex; flex-direction: column; min-width: 110px; }
.tt-arma-costo b { color: var(--tt-strong); font-size: 1.35rem; }
.tt-arma-costo .tt-muted { font-size: .8rem; }
.tt-btn.tt-arma-reset { padding: 8px 16px; font-size: .85rem; }
.tt-arma-n { font-size: .8rem; margin-top: 8px; }
@media print { .tt-arma { display: none; } }

/* Arma tu boleto bloqueado sin cuenta */
.tt-arma { position: relative; }
.tt-arma.bloqueado .tt-arma-c, .tt-arma.bloqueado .tt-arma-n { opacity: .35; filter: blur(1px); pointer-events: none; user-select: none; }
.tt-arma-candado { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(34,197,94,.5); background: var(--tt-surface); color: var(--tt-strong); font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); cursor: pointer; max-width: calc(100% - 24px); justify-content: center; text-align: center; }
.tt-arma-candado:hover { border-color: var(--tt-green); color: var(--tt-green); }
.tt-arma-candado i { color: var(--tt-green); }

/* ---------------------------------------------------------------- pagina 404 (404.html) */
.tt-404 { position: relative; overflow: hidden; text-align: center; padding: 44px 20px 36px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(34,197,94,.16) 0%, rgba(17,26,22,0) 65%), var(--tt-surface); }
.tt-404-logo { width: min(240px, 58vw); height: auto; aspect-ratio: 1; border-radius: 32px; border: 1px solid var(--tt-border);
  box-shadow: 0 0 0 8px rgba(34,197,94,.08), 0 24px 60px rgba(0,0,0,.55); }
/* el campo: franja verde con lineas de yardas y el 404 pintado como numero de yarda */
.tt-404-campo { position: relative; max-width: 560px; height: 170px; margin: 30px auto 22px; border-radius: 18px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.0) 0 54px, rgba(255,255,255,.22) 54px 56px),
              repeating-linear-gradient(90deg, #15803d 0 112px, #166534 112px 224px);
  box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 16px 40px rgba(0,0,0,.4); }
.tt-404-campo::before, .tt-404-campo::after { content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.55) 10px 12px); }
.tt-404-campo::before { top: 14px; } .tt-404-campo::after { bottom: 14px; }
.tt-404-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4.5rem, 16vw, 7.5rem); font-weight: 800;
  line-height: 1; letter-spacing: .04em; color: rgba(255,255,255,.92); text-shadow: 0 3px 0 rgba(0,0,0,.25); }
/* pañuelo: .tt-404-tiro mueve en X (lineal) y .tt-404-panuelo en Y (con caida), asi sale una parabola */
.tt-404-tiro { position: absolute; left: 70%; bottom: 22px; width: 96px; height: 96px; animation: tt404x .9s linear .35s both; }
.tt-404-panuelo { display: block; width: 100%; height: 100%; cursor: pointer; transform-origin: 50% 80%;
  animation: tt404y .9s cubic-bezier(.3,-.55,.7,1) .35s both, tt404cae .35s ease-out 1.25s both; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.tt-404-polvo { position: absolute; left: calc(70% + 48px); bottom: 24px; width: 0; height: 0; }
.tt-404-polvo i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.55); opacity: 0;
  animation: tt404polvo .6s ease-out 1.22s both; }
.tt-404-polvo i:nth-child(1) { --dx: -38px; --dy: -14px; } .tt-404-polvo i:nth-child(2) { --dx: -16px; --dy: -26px; }
.tt-404-polvo i:nth-child(3) { --dx: 18px; --dy: -24px; } .tt-404-polvo i:nth-child(4) { --dx: 40px; --dy: -10px; }
.tt-404-castigo { display: inline-flex; align-items: center; gap: 10px; background: #facc15; color: #1a1a1a; font-weight: 800; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(250,204,21,.25);
  animation: tt404sello .45s cubic-bezier(.2,1.6,.4,1) 1.45s both; }
.tt-404 h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--tt-text); margin: 16px 0 10px; }
.tt-404 p.lead { color: var(--tt-muted); max-width: 520px; margin: 18px auto 26px; font-size: 1rem; }
.tt-404-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* botones: entran una vez (abajo->arriba, 0.3 s, escalonados) y se quedan quietos */
.tt-404-acciones .tt-btn, .tt-404-dev { animation: ttEntra .3s ease-out both; }
.tt-404-acciones .tt-btn:nth-child(1) { animation-delay: 1.6s; } .tt-404-acciones .tt-btn:nth-child(2) { animation-delay: 1.7s; }
.tt-404-dev { animation-delay: 1.85s; }
.tt-404-dev { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; padding-top: 26px;
  border-top: 1px solid var(--tt-border); color: var(--tt-muted); font-size: .85rem; text-decoration: none; min-width: 240px; }
.tt-404-dev .chip { background: var(--tt-bg); border: 1px solid var(--tt-border); border-radius: 22px; padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .15s, border-color .15s; }
.tt-404-dev:hover .chip { transform: translateY(-2px); border-color: var(--tt-green); }
.tt-404-dev img { width: 112px; height: 112px; display: block; }
.tt-404-dev b { color: var(--tt-text); } .tt-404-dev:hover b { color: var(--tt-green); }
@keyframes tt404x { from { transform: translateX(240px); } to { transform: translateX(0); } }
@keyframes tt404y { 0% { transform: translateY(-150px) rotate(-420deg) scale(.7); opacity: 0; } 8% { opacity: 1; }
  100% { transform: translateY(0) rotate(0) scale(1); opacity: 1; } }
@keyframes tt404cae { 0% { transform: scale(1.15, .8); } 60% { transform: scale(.95, 1.06) rotate(-4deg); } 100% { transform: rotate(8deg); } }
@keyframes tt404polvo { 0% { opacity: .9; transform: translate(-7px, -7px) scale(.3); } 100% { opacity: 0; transform: translate(calc(var(--dx) - 7px), calc(var(--dy) - 7px)) scale(1.6); } }
@keyframes tt404sello { 0% { opacity: 0; transform: scale(2.2) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(-2deg); } }
@media (max-width: 575.98px) { .tt-404-castigo { font-size: .7rem; letter-spacing: .04em; padding: 7px 12px; white-space: nowrap; } .tt-404-campo { height: 140px; } .tt-404-tiro { left: 66%; width: 76px; height: 76px; } .tt-404-polvo { left: calc(66% + 38px); } }
@media (prefers-reduced-motion: reduce) { .tt-404-tiro, .tt-404-panuelo, .tt-404-polvo i, .tt-404-castigo { animation: none !important; } }

/* ---------------------------------------------------------------- menu en celular
   El menu entra deslizando, con fondo oscuro detras, y abajo hay una barra fija con las secciones
   (app.js la agrega en todas las paginas). Antes el menu se asomaba ~50 px a la izquierda. */
.tt-menu-fondo, .tt-barra { display: none; }
@media (max-width: 991.98px) {
  .sidebar { margin-left: 0 !important; width: min(300px, 84vw) !important; transform: translateX(-105%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
  .sidebar.open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .sidebar.open .navbar-nav .nav-link { animation: ttMenuItem .38s cubic-bezier(.2,.8,.2,1) both; }
  .sidebar.open .navbar-nav .nav-link:nth-child(2) { animation-delay: .04s; } .sidebar.open .navbar-nav .nav-link:nth-child(3) { animation-delay: .08s; }
  .sidebar.open .navbar-nav .nav-link:nth-child(4) { animation-delay: .12s; } .sidebar.open .navbar-nav .nav-link:nth-child(5) { animation-delay: .16s; }
  .sidebar.open .navbar-nav .nav-link:nth-child(6) { animation-delay: .2s; } .sidebar.open .navbar-nav .nav-link:nth-child(7) { animation-delay: .24s; }
  .tt-menu-fondo { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(5,8,6,.6); backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.tt-menu-abierto .tt-menu-fondo { opacity: 1; pointer-events: auto; }
  body.tt-menu-abierto { overflow: hidden; }
  .content .navbar .sidebar-toggler i { transition: transform .3s; }
  body.tt-menu-abierto .content .navbar .sidebar-toggler i { transform: rotate(90deg); }

  .tt-barra { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: rgba(17,26,22,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--tt-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); animation: ttBarra .4s cubic-bezier(.2,.8,.2,1) .2s both; }
  .tt-barra a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--tt-muted);
    font-size: .68rem; font-weight: 600; text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
  .tt-barra a { animation: ttEntra .3s ease-out both; }
  .tt-barra a:nth-child(1) { animation-delay: .35s; } .tt-barra a:nth-child(2) { animation-delay: .4s; } .tt-barra a:nth-child(3) { animation-delay: .45s; }
  .tt-barra a:nth-child(4) { animation-delay: .5s; } .tt-barra a:nth-child(5) { animation-delay: .55s; }
  .tt-barra a i { font-size: 1.15rem; transition: transform .2s; }
  .tt-barra a:active i { transform: scale(.85); }
  .tt-barra a.activo { color: var(--tt-green); }
  .tt-barra a.activo::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tt-green); }
  body.tt-con-barra { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.tt-con-barra .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 18px !important; }
  body.tt-con-barra .tt-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@keyframes ttEntra { from { opacity: 0; transform: translate(-12px, 14px); } to { opacity: 1; transform: none; } }
@keyframes ttMenuItem { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes ttBarra { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sidebar, .tt-barra, .tt-barra a, .sidebar .nav-link, .tt-404-acciones .tt-btn, .tt-404-dev { transition: none !important; animation: none !important; } }
@media print { .tt-barra, .tt-menu-fondo { display: none !important; } }

/* ---------------------------------------------------------------- compartir (js/compartir.js) */
.tt-compartir { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tt-compartir.compacto { background: none; border: 0; padding: 0; margin-top: 16px; justify-content: center; }
.tt-compartir-t { display: flex; align-items: center; gap: 12px; }
.tt-compartir-t > i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tt-green-soft); color: var(--tt-green); }
.tt-compartir-t b { display: block; color: var(--tt-text); }
.tt-compartir-t span { font-size: .84rem; color: var(--tt-muted); }
.tt-compartir-b { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-compartir-b button { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; border: 1px solid var(--tt-border); background: var(--tt-surface-2); color: var(--tt-text); }
.tt-compartir-b button:hover { border-color: var(--tt-green); }
.tt-compartir-b button.principal { background: var(--tt-green-strong); border-color: var(--tt-green-strong); color: #fff; }
.tt-compartir-b .wa i { color: #25d366; }
.tt-compartir-b .fb i { color: #4c8df6; }
@media (max-width: 575px) { .tt-compartir-b button { padding: 7px 11px; font-size: .8rem; } }
.tt-footer-links .tt-fb i { color: #4c8df6; }
.tt-siguenos { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--tt-muted); text-decoration: none; }
.tt-siguenos i { color: #4c8df6; font-size: 1.05rem; }
.tt-siguenos:hover { color: var(--tt-text); }
.tt-compartir.compacto .tt-siguenos { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- look moderno (los dos temas) */
.tt-card, .tt-match, .pl-card, .cg-card, .cg-dato, .mt-deporte, .pl-ajustes { box-shadow: var(--tt-shadow); }
.tt-match, .pl-card, .cg-card, a.mt-deporte { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
@media (hover: hover) {
  .tt-match:hover, .pl-card:hover, .cg-card:hover, a.mt-deporte:hover { transform: translateY(-2px); box-shadow: var(--tt-shadow-hover); }
}
.content .navbar { backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
body, .content, .sidebar, .content .navbar, .tt-card, .pl-card, .cg-card { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
@media (prefers-reduced-motion: reduce) {
  .tt-match, .pl-card, .cg-card, a.mt-deporte, body, .content, .sidebar, .content .navbar, .tt-card { transition: none !important; }
  .tt-match:hover, .pl-card:hover, .cg-card:hover, a.mt-deporte:hover { transform: none; }
}
/* Tarjetas de partido que son enlaces (TTP.enlazarPartido): un <a> que cubre la tarjeta */
.tt-con-enlace { position: relative; cursor: pointer; transition: border-color .15s, transform .15s; }
.tt-con-enlace:hover { border-color: var(--tt-green, #22c55e); }
.tt-enlace-tarjeta { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tt-enlace-tarjeta:focus-visible { outline: 2px solid var(--tt-green, #22c55e); outline-offset: 2px; }
.tt-liga-fila { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; color: var(--tt-green); }
.tt-liga-fila.tt-con-enlace { transition: none; }
.tt-liga-fila .tt-enlace-tarjeta { border-radius: 4px; }

/* Pronostico por modelo (pestañas EPA / Monte Carlo / ML) */
.tt-modelos-tabs { display: none; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.tt-modelos.on .tt-modelos-tabs { display: flex; }
.tt-modelos-tabs button { background: transparent; border: 1px solid var(--tt-border); color: var(--tt-text); border-radius: 999px; padding: 8px 18px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.tt-modelos-tabs button.on { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
.tt-modelos.on .tt-modelo-h { display: none; }
.tt-modelos.on .tt-modelo-panel:not(.on) { display: none; }
.tt-modelo-h { font-size: 1rem; margin: 14px 0 6px; color: var(--tt-strong); }
.tt-modelo-marc { color: var(--tt-text); margin: 4px 0; }
.tt-modelo-marc b { color: var(--tt-strong); }
.tt-modelo-dif { color: var(--tt-muted); font-size: .9rem; line-height: 1.5; margin: 6px 0 0; max-width: 760px; }

/* ---------- Pagos: cafe en el footer y /hazte-vip (js/pagos.js) ---------- */
.tt-cafe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); padding: 16px 20px; margin-bottom: 16px; }
.tt-cafe[hidden] { display: none; }
.tt-cafe-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.tt-cafe-txt b { color: var(--tt-strong); }
.tt-cafe-txt b i { color: var(--tt-gold); }
.tt-cafe-txt span { color: var(--tt-muted); font-size: .9rem; }
.tt-cafe-bots { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-pago-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--tt-border); background: transparent; color: var(--tt-text); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; }
.tt-pago-btn:hover { border-color: var(--tt-green); color: var(--tt-text); }
.tt-pago-btn.kofi i { color: #ff5e5b; }
.tt-pago-btn.mp i { color: #00b1ea; }
.tt-pago-btn.pp i { color: #3b7bbf; }
.tt-pago-btn.vip { background: var(--tt-gold); border-color: var(--tt-gold); color: #1a1200; }
.tt-pago-btn.vip:hover { filter: brightness(1.08); color: #1a1200; }
.tt-pago-btn.off { opacity: .55; cursor: not-allowed; pointer-events: none; }
.tt-pago-btn.chico { padding: 5px 12px; font-size: .85rem; }
.tt-pago-pronto { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tt-muted); margin-left: 2px; }
.hv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.hv-card { background: var(--tt-surface); border: 1px solid var(--tt-border); border-radius: var(--tt-radius); padding: 22px; color: var(--tt-text); }
.hv-ya { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-color: rgba(245, 184, 61, .6); }
.hv-ya p { margin: 0; }
.hv-oferta { display: inline-block; background: rgba(245, 184, 61, .15); color: var(--tt-gold); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.hv-monto { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.hv-monto b { font-size: 2.6rem; line-height: 1; color: var(--tt-strong); }
.hv-monto .hv-mxn { color: var(--tt-muted); }
.hv-monto s { color: var(--tt-muted); font-size: 1.1rem; }
.hv-nota { color: var(--tt-muted); font-size: .9rem; margin: 0 0 14px; }
.hv-incluye { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hv-incluye i { color: var(--tt-green); }
.hv-pasos { margin: 0; padding-left: 44px; display: grid; gap: 18px; }
.hv-pasos li > b { display: block; color: var(--tt-strong); margin-bottom: 8px; }
.hv-ok { color: var(--tt-green); font-size: .92rem; overflow-wrap: anywhere; }
.hv-copia { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hv-copia code { background: rgba(255, 255, 255, .06); color: var(--tt-strong); padding: 6px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.hv-bloq { opacity: .5; pointer-events: none; }
@media (max-width: 860px) { .hv-grid { grid-template-columns: minmax(0, 1fr); } .hv-pasos { padding-left: 26px; } }
html[data-tema="claro"] .hv-copia code { background: rgba(0, 0, 0, .05); }
.hv-otro { margin-top: 10px; font-size: .9rem; color: var(--tt-muted); }
.hv-otro summary { cursor: pointer; }
.hv-otro input { display: block; width: 100%; max-width: 320px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--tt-border); background: transparent; color: var(--tt-text); }
.tt-pago-btn.mpbig { background: #009ee3; border-color: #009ee3; color: #fff; padding: 11px 20px; }
.tt-pago-btn.mpbig i { color: #fff; }
.tt-pago-btn.mpbig:hover { filter: brightness(1.08); color: #fff; }
.tt-pago-btn:disabled { opacity: .5; cursor: not-allowed; }
.hv-aviso { border-color: var(--tt-green); }
.hv-aviso.err { border-color: var(--tt-bad); }
.hv-ayuda { margin-top: 8px; font-size: .88rem; color: var(--tt-muted); }
.hv-transf code { font-size: 1.05rem; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--tt-border); }
.hv-transf .tt-pago-btn { padding: 3px 10px; font-size: .85rem; }

/* ---- /hazte-vip: prueba gratis, historial y ejemplos (js/pagos.js pintarPruebas) ---- */
.hv-garantia { margin: 12px 0 0; font-size: .9rem; }
.hv-garantia .fa-shield-alt { color: var(--tt-green); }
.hv-politica { font-size: .85rem; color: var(--tt-muted); text-decoration: underline; white-space: nowrap; }
.hv-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.hv-extra h2 { font-size: 1.05rem; margin-bottom: 12px; color: var(--tt-text); }
.hv-prueba { border-color: var(--tt-dif); }
.hv-prueba b { color: var(--tt-text); font-size: 1.05rem; }
.hv-prueba p { margin: 6px 0 12px; }
.hv-hist-fila { margin-bottom: 12px; }
.hv-hist-fila .top { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; margin-bottom: 4px; }
.hv-hist-fila .top span { color: var(--tt-muted); }
.hv-hist-fila .track { height: 8px; border-radius: 999px; background: var(--tt-surface-2); overflow: hidden; }
.hv-hist-fila .fill { display: block; height: 100%; background: var(--tt-green); border-radius: 999px; }
.hv-hist-fila.vip .fill { background: var(--tt-dif); }
.hv-hist-fila.vip b { color: var(--tt-dif); }
.hv-ej-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hv-ej-grid figure { margin: 0; }
.hv-ej-grid img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--tt-border); }
.hv-ej-grid figcaption { font-size: .85rem; color: var(--tt-muted); margin-top: 6px; }

/* ---- Portada: tarjeta sin jugar = pick grande + marcador esperado chico (home.js ficha) ---- */
.tt-pick-grande { text-align: center; margin: 8px 0 2px; }
.tt-pick-grande .lbl { display: block; font-size: .66rem; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .08em; }
.tt-pick-grande b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.2; color: var(--tt-local); }
.tt-pick-grande b.c-d { color: var(--tt-dif); } .tt-pick-grande b.c-v { color: var(--tt-visita); }
.tt-esperado { text-align: center; font-size: .8rem; color: var(--tt-muted); margin-bottom: 8px; }
.tt-esperado b { color: var(--tt-text); font-variant-numeric: tabular-nums; }
.tt-pick-grande b::first-letter { text-transform: uppercase; }

/* ---- Fantasy: jugadores cuyo partido ya empezo + fila VIP (js/fantasy.js) ---- */
.fa-ya { opacity: .55; }
.fa-chip.ya { background: var(--tt-surface-2); color: var(--tt-muted); border: 1px solid var(--tt-border); margin-left: 6px; }
.fa-vip-fila td { text-align: center; padding: 12px 8px; font-size: .9rem; color: var(--tt-muted); }
.fa-vip-fila i { color: var(--tt-dif); }
/* Celular: "Ver pronostico" se cortaba al final del renglon del marcador (white-space: nowrap) */
@media (max-width: 767px) { .tt-q td.score { white-space: normal; } .tt-q td.score .tt-liga-fila { white-space: nowrap; margin-left: 8px; } }
.enc-prev { margin-bottom: 12px; font-size: .92rem; }
.enc-prev ul { margin: 6px 0 0; padding-left: 20px; color: var(--tt-muted); }

/* ---- Quiniela: primer TD en tarjeta compacta; la tabla se abre al tocarla (js/quiniela-semana.js primerTD) ---- */
.tt-td-compacta { max-width: 520px; margin: 0 auto; }
.tt-td-compacta > summary { list-style: none; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tt-td-compacta > summary::-webkit-details-marker { display: none; }
.tt-td-compacta > summary:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 4px; border-radius: 12px; }
.tt-td-tirada { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--tt-text); }
.tt-td-tirada b { color: var(--tt-green); }
.tt-td-prob b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--tt-green); }
.tt-td-prob span { font-size: .78rem; color: var(--tt-muted); }
.tt-td-ver { font-size: .85rem; font-weight: 600; color: var(--tt-green); border: 1px solid var(--tt-border); border-radius: 999px; padding: 4px 12px; }
.tt-td-ver .cerrar { display: none; }
.tt-td-compacta[open] .tt-td-ver .abrir { display: none; }
.tt-td-compacta[open] .tt-td-ver .cerrar { display: inline; }
.tt-td-compacta[open] .tt-td-ver i { transform: rotate(180deg); }
.tt-td-tabla { margin-top: 14px; overflow-x: auto; }
@media (max-width: 575px) { .tt-td-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Quiniela: explicaciones plegadas con "?" (boleto y dobles/triples) ---- */
.tt-plegable > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--tt-green); font-weight: 600; }
.tt-plegable > summary::-webkit-details-marker { display: none; }
.tt-plegable > summary:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 3px; border-radius: 8px; }
.tt-plegable .q { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--tt-green); font-size: .8rem; font-weight: 800; color: var(--tt-green); }
.tt-plegable[open] .q { background: var(--tt-green); color: #06130c; }
.tt-plegable-c { margin: 8px 0 10px; font-size: .85rem; color: var(--tt-muted); }
.tt-plegable-c p { margin-bottom: 6px; }
#tt-como-leer { margin-bottom: 10px; }
.tt-arma-t.tt-plegable > summary b { color: var(--tt-text); font-size: 1rem; }
@media print { .tt-q-acciones { display: none !important; } }
.tt-arma-t.tt-plegable { display: block; }
/* Celular: barras de triples y dobles lado a lado; costo y "Recomendado" en un renglon */
@media (max-width: 575px) {
  .tt-arma-c { gap: 10px 14px; }
  .tt-arma-c label { min-width: 0; flex: 1 1 calc(50% - 7px); }
  .tt-arma-costo { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
}

/* Ronda 4 quiniela (Eloi 2026-11-21): encabezado con logo Protouch, primer TD con un casco y tabla al lado, dobles y triples */
.tt-q-encabezado { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tt-q-protouch { height: 64px; width: auto; flex: 0 0 auto; }
@media (max-width: 575px) { .tt-q-protouch { height: 46px; } }
.tt-td-compacta { transition: max-width .2s; }
.tt-td-resumen { cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tt-td-resumen:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 4px; border-radius: 12px; }
.tt-td-resumen .eq-big img.tt-casco { width: 76px; height: 76px; object-fit: contain; }
.tt-td-partido { font-size: .8rem; }
.tt-td-compacta .tt-td-ver .cerrar { display: none; }
.tt-td-compacta.abierta .tt-td-ver .abrir { display: none; }
.tt-td-compacta.abierta .tt-td-ver .cerrar { display: inline; }
.tt-td-compacta.abierta .tt-td-ver i { transform: rotate(180deg); }
.tt-td-compacta.abierta { max-width: 1100px; display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: center; }
.tt-td-compacta.abierta .tt-td-tabla { margin-top: 0; }
@media (max-width: 767px) {
  .tt-td-compacta.abierta { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tt-td-compacta .tt-td-ver i { transform: rotate(90deg); }
  .tt-td-compacta.abierta .tt-td-ver i { transform: rotate(-90deg); }
}
.tt-arma-c label { flex-direction: column; }
.tt-arma-l { display: inline-flex; align-items: baseline; gap: 6px; color: var(--tt-text); font-size: .95rem; }
.tt-arma-l b { margin-left: 0; }
.tt-arma-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: nowrap; }
.tt-arma-pie .tt-arma-costo { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
.tt-arma.bloqueado .tt-arma-pie { opacity: .35; filter: blur(1px); pointer-events: none; user-select: none; }
.tt-arma-pie .tt-arma-costo .tt-muted { white-space: nowrap; }

/* Ronda 5: encabezado en dos bloques (titulo | logo Protouch + texto) y "?" junto al % del primer TD */
.tt-q-encabezado { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.tt-q-titulo { min-width: 0; }
.tt-q-para { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--tt-border); border-radius: 14px; background: var(--tt-surface-2); max-width: 340px; }
.tt-q-para img { height: 48px; width: auto; flex: 0 0 auto; }
.tt-q-para span { font-size: .9rem; line-height: 1.3; color: var(--tt-muted); }
.tt-q-para b { color: var(--tt-text); }
@media (max-width: 575px) {
  .tt-q-para { max-width: none; width: 100%; padding: 6px 12px; }
  .tt-q-para img { height: 40px; }
}
.tt-td-prob { display: inline-flex; align-items: center; gap: 8px; }
.tt-td-prob b { display: inline; }
.tt-td-q { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--tt-green); background: transparent; color: var(--tt-green); font-size: .8rem; font-weight: 800; padding: 0; cursor: pointer; }
.tt-td-q[aria-expanded="true"] { background: var(--tt-green); color: #06130c; }
.tt-td-q:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 2px; }
.tt-td-q-txt { font-size: .8rem; color: var(--tt-muted); max-width: 280px; }
.tt-q-titulo h1 .tt-muted { font-size: .6em; white-space: nowrap; }

/* Ronda 6 (Eloi 2026-11-21): costo arriba/abajo, presupuesto, botones lado a lado, tabla del primer TD responsiva */
.tt-arma-pie { flex-wrap: wrap; align-items: flex-end; }
.tt-arma-pie .tt-arma-costo { flex-direction: column; align-items: flex-start; gap: 0; }
.tt-arma-presu { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.tt-arma-presu .tt-muted { font-size: .8rem; white-space: nowrap; }
.tt-arma-presu-c { display: inline-flex; align-items: center; gap: 4px; color: var(--tt-strong); font-weight: 700; }
.tt-arma-presu input { width: 96px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--tt-border); background: var(--tt-surface-2); color: var(--tt-text); font-weight: 700; }
.tt-arma-presu input:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 1px; }
.tt-arma-presu-aviso { font-size: .8rem; margin-top: 6px; }
.tt-q-acciones { flex-wrap: nowrap; }
.tt-q-acciones .tt-btn { flex: 1 1 0; max-width: 220px; padding: 10px 14px; white-space: nowrap; }
.tt-td-corto { display: none; }
.tt-td-tabla table { table-layout: fixed; width: 100%; }
.tt-td-tabla th:first-child, .tt-td-tabla td:first-child { width: 36%; }
.tt-td-tabla td:first-child { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
@media (max-width: 575px) {
  .tt-td-largo { display: none; }
  .tt-td-corto { display: inline; }
  .tt-td-tabla table { font-size: .9rem; }
  .tt-td-tabla td { padding: 8px 2px; }
  .tt-arma-pie { gap: 10px; }
  .tt-arma-presu input { width: 80px; }
}
.tt-td-tabla td:first-child { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 575px) {
  .tt-td-tabla th:first-child, .tt-td-tabla td:first-child { width: 40%; }
  .tt-td-tabla td:first-child { font-size: .82rem; }
  .tt-td-tabla td.max { border-radius: 8px; }
}

/* Ronda 7 (Eloi 2026-11-21): pestanas de modelo, marcador esperado/final, "Recomendamos" */
.tt-modelos { display: flex; gap: 6px; margin: 4px 0 10px; padding: 4px; border: 1px solid var(--tt-border); border-radius: 12px; background: var(--tt-surface-2); }
.tt-modelos button { flex: 1 1 0; border: 0; background: transparent; color: var(--tt-muted); font-weight: 700; font-size: .9rem; padding: 8px 6px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tt-modelos button[aria-selected="true"] { background: var(--tt-green); color: #06130c; }
.tt-modelos button.cerrado { opacity: .75; }
.tt-modelos button.cerrado i { font-size: .75rem; margin-right: 2px; }
.tt-modelos button:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 2px; }
@media (max-width: 400px) { .tt-modelos button { font-size: .8rem; padding: 8px 2px; } }
.tt-q td.score::before { content: none !important; }
.tt-sc-k { font-size: .72rem; font-weight: 500; color: var(--tt-muted); }
.tt-sc-k.vivo { color: var(--tt-bad); font-weight: 700; }
.tt-sc-k.vivo .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tt-bad); margin-right: 5px; vertical-align: 1px; animation: tt-pulso 1.2s infinite; }
.tt-sc-fila { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tt-sc-v { font-size: 1.25rem; font-weight: 800; color: var(--tt-text); white-space: nowrap; }
.tt-sc-esp { font-size: .75rem; font-weight: 500; color: var(--tt-muted); }
.tt-reco-k { font-size: .65rem; font-weight: 600; color: var(--tt-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.tt-reco { display: inline-flex; align-items: center; gap: 6px; }
.tt-reco .tt-jugada { margin: 0 !important; display: inline !important; }
.tt-q th.prob, .tt-q td.score, .tt-q td.tipo { vertical-align: middle; }
@media (max-width: 767px) {
  .tt-sc-fila { flex-direction: row; align-items: baseline; gap: 12px; }
  .tt-sc-v { font-size: 1.35rem; }
  .tt-q td.tipo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .tt-reco-k { margin: 0; font-size: .72rem; }
  .tt-q td.tipo .tt-motivo { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tt-sc-k.vivo .dot { animation: none; } }
@media (min-width: 768px) { .tt-reco-k { display: none; } }

/* Ronda 8 (Eloi 2026-11-21): nombre completo del modelo, Final + Ver jugadas en un renglon, letras a la derecha, enlaces 2 por fila */
.tt-sc-final { white-space: nowrap; }
.tt-sc-final .tt-sc-k { font-size: .8rem; }
@media (max-width: 575px) {
  .tt-modelos button { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding: 6px 2px; font-size: .85rem; }
  .tt-mod-ttp { font-size: .62rem; font-weight: 700; letter-spacing: .06em; opacity: .8; }
}
@media (max-width: 767px) {
  .tt-q td.score .tt-sc-fila { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; }
  .tt-q td.score .tt-liga-fila { margin-left: auto !important; text-align: right; }
  .tt-q td.tipo .tt-reco { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; }
  .tt-q td.tipo .tt-reco .tt-jugada { margin-left: auto !important; }
}
.tt-partidos-ligas ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-partidos-ligas li { min-width: 0; }
.tt-partidos-ligas a { display: block; overflow-wrap: anywhere; }
@media (max-width: 340px) { .tt-partidos-ligas ul { grid-template-columns: minmax(0, 1fr); } }

/* Ronda 9 (Eloi 2026-11-22): "¿Juegas dobles o triples?" es una tarjeta cerrada por defecto */
.tt-arma > summary.tt-arma-sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--tt-text); font-size: 1rem; }
.tt-arma > summary.tt-arma-sum::-webkit-details-marker { display: none; }
.tt-arma > summary.tt-arma-sum:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 3px; border-radius: 10px; }
.tt-arma-sum b { color: var(--tt-text); }
.tt-arma-sum b i { color: var(--tt-green); margin-right: 4px; }
.tt-arma-chev { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--tt-border); color: var(--tt-green); font-size: .75rem; transition: transform .15s; }
.tt-arma[open] .tt-arma-chev { transform: rotate(180deg); }
.tt-arma[open] > summary.tt-arma-sum { margin-bottom: 8px; }
.tt-arma .tt-arma-t.tt-plegable { margin-bottom: 8px; }
.tt-arma:not([open]) .tt-arma-candado { display: none; }
@media (prefers-reduced-motion: reduce) { .tt-arma-chev { transition: none; } }

/* Ronda 10: titulo "Quiniela de la semana" con el ? al lado que abre la explicacion de las casillas */
#tt-como-leer > summary { font-size: 1rem; }
#tt-como-leer > summary h5 { font-size: 1.25rem; margin: 0; }
#tt-como-leer { margin-bottom: 8px; }

/* Ronda 12 (Eloi 2026-11-22): tarjeta del primer TD baja: casco + texto a la izquierda, porcentaje a la derecha */
.tt-td-compacta { max-width: 560px; }
.tt-td { padding: 14px 18px; }
.tt-td-resumen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "eq tirada prob" "qtxt qtxt qtxt" "partido partido ver"; align-items: center; gap: 6px 14px; text-align: left; }
.tt-td-resumen .eq-big { grid-area: eq; }
.tt-td-resumen .eq-big img.tt-casco { width: 56px; height: 56px; }
.tt-td-resumen .tt-td-tirada { grid-area: tirada; display: block; font-size: 1.05rem; line-height: 1.25; }
.tt-td-resumen .tt-td-prob { grid-area: prob; justify-self: end; }
.tt-td-resumen .tt-td-prob b { font-size: 2rem; }
.tt-td-resumen .tt-td-q-txt { grid-area: qtxt; justify-self: end; text-align: right; }
.tt-td-resumen .tt-td-partido { grid-area: partido; }
.tt-td-resumen .tt-td-ver { grid-area: ver; justify-self: end; }
@media (max-width: 575px) {
  .tt-td { padding: 12px 12px; }
  .tt-td-resumen { gap: 4px 10px; }
  .tt-td-resumen .eq-big img.tt-casco { width: 46px; height: 46px; }
  .tt-td-resumen .tt-td-tirada { font-size: .95rem; }
  .tt-td-resumen .tt-td-prob b { font-size: 1.7rem; }
}
@media (min-width: 768px) {
  .tt-td-compacta.abierta .tt-td-resumen { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tt-td-compacta.abierta .tt-td-resumen .tt-td-q-txt { text-align: center; }
}

@media (max-width: 575px) {
  .tt-td-compacta .tt-td-resumen { gap: 4px 8px; }
  .tt-td-resumen .eq-big img.tt-casco { width: 40px; height: 40px; }
  .tt-td-resumen .tt-td-tirada { font-size: .88rem; }
  .tt-td-resumen .tt-td-prob { gap: 5px; }
  .tt-td-resumen .tt-td-prob b { font-size: 1.45rem; }
  .tt-td-q { width: 22px; height: 22px; }
  .tt-td-resumen .tt-td-partido { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .tt-td-resumen .tt-td-ver { font-size: .78rem; padding: 3px 9px; white-space: nowrap; }
}
@media (max-width: 575px) {
  .tt-td-resumen .tt-td-prob b { font-size: 1.35rem; }
  .tt-td-resumen .tt-td-tirada { font-size: .9rem; }
}

/* Ronda 13 (Eloi 2026-11-22): casco arriba (con el %), leyenda debajo a todo lo ancho */
.tt-td-resumen { grid-template-areas: "eq . prob" "tirada tirada tirada" "qtxt qtxt qtxt" "partido partido ver"; }
.tt-td-resumen .tt-td-tirada { text-align: left; }
.tt-td-resumen .eq-big img.tt-casco { width: 52px; height: 52px; }
@media (max-width: 575px) {
  .tt-td-resumen .eq-big img.tt-casco { width: 46px; height: 46px; }
  .tt-td-resumen .tt-td-tirada { font-size: .95rem; }
  .tt-td-resumen .tt-td-prob b { font-size: 1.6rem; }
}

/* Ronda 14 (Eloi 2026-11-22): tarjetas de abajo (laterales) de 2 en 2, tambien en celular.
   Las de la izquierda se alinean en parejas; las de la derecha (noticias, podcast, lesiones) van a todo lo ancho. */
@media (max-width: 1199.98px) {
  body .tt-3col.tt-portada { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .tt-3col.tt-portada > .tt-centro { grid-column: 1 / -1; order: -1; }
  body .tt-3col.tt-portada > .tt-lado-izq { display: contents; }
  body .tt-3col.tt-portada > .tt-lado-der { grid-column: 1 / -1; }
  body .tt-3col.tt-portada > .tt-lado-izq > .tt-lc { min-width: 0; }
  body .tt-3col.tt-portada > .tt-lado-izq > .tt-lc:has(.tt-pos-tabs),
  body .tt-3col.tt-portada > .tt-lado-izq > .tt-lc:has(#ev-vip-parley) { grid-column: 1 / -1; }
}
@media (max-width: 1499.98px) {
  body .tt-3col.tt-portada:has(.tt-q) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body .tt-3col.tt-portada:has(.tt-q) > .tt-lado-izq { display: contents; }
  body .tt-3col.tt-portada:has(.tt-q) > .tt-lado-der { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  body .tt-3col.tt-portada { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px; }
  .tt-3col.tt-portada .tt-lc { padding: 12px 10px; }
  .tt-3col.tt-portada .tt-lc .tt-rank li { gap: 6px; }
}
.tt-modelos button { display: block; line-height: 1.2; }
@media (max-width: 1499.98px) { body .tt-3col.tt-portada > .tt-lado-izq > .tt-lc { align-self: stretch; } }

/* Cafe: taza del logo de oncoffee (Eloi 2026-11-22) */
.tt-cafe-txt b { display: flex; align-items: center; gap: 10px; }
.tt-cafe-taza { width: 44px; height: 44px; flex: 0 0 auto; }

/* Bloque "Hazte VIP" arriba del cafe (Eloi 2026-11-22) */
.tt-vipbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: linear-gradient(90deg, rgba(212,167,44,.14), rgba(212,167,44,0) 80%), var(--tt-surface); border: 1px solid var(--tt-gold); border-radius: var(--tt-radius); padding: 16px 20px; margin-bottom: 16px; }
.tt-vipbox-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.tt-vipbox-txt b { color: var(--tt-strong); }
.tt-vipbox-txt b i { color: var(--tt-gold); }
.tt-vipbox-txt span { color: var(--tt-muted); font-size: .9rem; }
.tt-vipbox .tt-pago-btn.vip { flex: 0 0 auto; }
@media (max-width: 575px) { .tt-vipbox .tt-pago-btn.vip { width: 100%; justify-content: center; } }

/* Cafe: un solo boton + ventana con las opciones (Eloi 2026-11-22) */
.tt-pago-btn.cafe-abrir { cursor: pointer; }
.tt-cafe-modal { border: 1px solid var(--tt-border); border-radius: 16px; background: var(--tt-surface); color: var(--tt-text); padding: 20px; width: min(92vw, 380px); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.tt-cafe-modal::backdrop { background: rgba(0,0,0,.55); }
.tt-cafe-modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-cafe-modal-cab h2 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--tt-strong, var(--tt-text)); }
.tt-cafe-modal-x { border: 0; background: transparent; color: var(--tt-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.tt-cafe-modal-x:hover { color: var(--tt-text); }
.tt-cafe-modal-txt { font-size: .88rem; color: var(--tt-muted); margin: 8px 0 14px; }
.tt-cafe-modal-bots { display: grid; gap: 8px; }
.tt-cafe-modal-bots .tt-pago-btn { width: 100%; justify-content: center; }

/* Regalo de 2 semanas por contestar la encuesta (Eloi 2026-11-22) */
.hv-regalo { border-color: var(--tt-gold); background: linear-gradient(90deg, rgba(212,167,44,.14), rgba(212,167,44,0) 80%), var(--tt-surface); margin-bottom: 16px; }
.hv-regalo b { font-size: 1.1rem; }
.hv-regalo b i { color: var(--tt-gold); }
.tt-vipbox-bots { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575px) { .tt-vipbox-bots { width: 100%; } .tt-vipbox-bots .tt-pago-btn { flex: 1 1 100%; justify-content: center; } }

/* Aviso de regalo en /mi-tirada-vip: respetar [hidden] */
.tt-vipbox[hidden] { display: none; }

/* Local primero (Eloi 2026-11-22): L y V junto a cada equipo */
.tt-lv { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--tt-border); color: var(--tt-muted); vertical-align: middle; margin: 0 2px; }

/* Zona VIP de /mi-tirada-vip/nfl (Eloi 2026-11-23): dorado, resumen, gratis vs VIP, impacto de lesiones */
.vip-zona { border: 1px solid var(--tt-gold); border-radius: var(--tt-radius); padding: 18px 20px; background: linear-gradient(180deg, rgba(245,184,61,.12), rgba(245,184,61,0) 60%), var(--tt-surface); }
.vip-zona-t { color: var(--tt-strong); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; margin: 2px 0 12px; }
.vip-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.vip-dato { border: 1px solid var(--tt-border); border-radius: 12px; padding: 10px 12px; background: var(--tt-surface); display: flex; flex-direction: column; gap: 2px; }
.vip-dato b { font-size: 1.6rem; line-height: 1.1; color: var(--tt-gold-ink); }
.vip-dato span { font-size: .85rem; color: var(--tt-muted); }
.vip-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.vip-col { border: 1px solid var(--tt-border); border-radius: 12px; padding: 12px 14px; background: var(--tt-surface); }
.vip-col h3 { font-size: 1rem; font-weight: 800; margin: 0 0 6px; color: var(--tt-strong); }
.vip-col ul { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--tt-text); }
.vip-col li { margin: 3px 0; }
.vip-col-vip { border-color: var(--tt-gold); }
.vip-col-vip h3 i, .vip-col-vip li::marker { color: var(--tt-gold-ink); }
.vip-accesos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.vip-accesos a { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; border: 1px solid var(--tt-gold); border-radius: 12px; padding: 10px 12px; text-decoration: none; background: var(--tt-surface); color: var(--tt-text); }
.vip-accesos a i { grid-row: span 2; color: var(--tt-gold-ink); font-size: 1.3rem; text-align: center; }
.vip-accesos a b { color: var(--tt-strong); }
.vip-accesos a span { font-size: .82rem; color: var(--tt-muted); }
.vip-accesos a:hover, .vip-accesos a:focus-visible { background: rgba(245,184,61,.14); }
.vip-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 12px; }
.vip-switch label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.vip-switch input { accent-color: var(--tt-gold); width: 18px; height: 18px; }
.cg-impacto { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--tt-border); font-size: .85rem; }
.cg-impacto b { color: var(--tt-strong); }
.cg-imp-j { color: var(--tt-muted); }
.cg-imp-alto { border-color: var(--tt-gold); background: rgba(245,184,61,.12); }
.cg-imp-medio { border-color: rgba(245,184,61,.6); }
.cg-aj.cg-sin { opacity: .55; }
@media (max-width: 575px) { .vip-vs { grid-template-columns: 1fr; } .vip-zona { padding: 14px; } }

/* Consenso de modelos vs casas (Eloi 2026-11-23) */
.vip-alerta { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--tt-gold); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: rgba(245,184,61,.16); }
.vip-alerta[hidden] { display: none; }
.vip-alerta > i { color: var(--tt-gold-ink); font-size: 1.4rem; margin-top: 2px; }
.vip-alerta b { display: block; color: var(--tt-strong); }
.vip-alerta span { font-size: .9rem; color: var(--tt-muted); }
.vip-alerta a { color: var(--tt-gold-ink); font-weight: 600; }
.cb-card-cons { border-color: var(--tt-gold) !important; box-shadow: 0 0 0 1px var(--tt-gold) inset; }
.cb-cons { border: 1px solid var(--tt-gold); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: rgba(245,184,61,.12); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.cb-cons b { color: var(--tt-gold-ink); font-size: .9rem; }
.cb-cons span { font-size: .82rem; color: var(--tt-text); }
.cb-sorpresa { font-size: .8rem; color: var(--tt-muted); margin: 4px 0; }
.cb-sorpresa i { color: var(--tt-gold-ink); }

/* Panel "Tú decides" de /mi-tirada-vip/nfl (Eloi 2026-11-24): separado del combinado, acento azul */
.vip-lab { --lab: #5aa9ff; border: 1px solid var(--lab); border-radius: var(--tt-radius); padding: 18px 20px; background: linear-gradient(180deg, rgba(90,169,255,.10), rgba(90,169,255,0) 50%), var(--tt-surface); }
.vip-lab-marca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--lab); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.vip-lab-t { color: var(--tt-strong); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; margin: 4px 0 6px; }
.lab-controles { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 12px; margin: 12px 0 16px; }
.lab-grupo { border: 1px solid var(--tt-border); border-radius: 12px; padding: 10px 12px; background: var(--tt-surface); }
.lab-grupo .vip-switch { margin: 0; }
.lab-grupo-t { font-weight: 700; color: var(--tt-strong); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.lab-ayuda, .lab-q { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--lab, #5aa9ff); background: transparent; color: var(--lab, #5aa9ff); font-weight: 700; font-size: .8rem; line-height: 1; cursor: pointer; padding: 0; }
.lab-ayuda-txt { font-size: .85rem; color: var(--tt-muted); margin: 0 0 8px; }
.lab-senales { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.lab-senal { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tt-border); border-radius: 999px; padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.lab-senal input { accent-color: var(--lab, #5aa9ff); }
.lab-senal:has(input:not(:checked)) { opacity: .55; }
.lab-todas { display: inline-flex; gap: 6px; margin-left: auto; }
.lab-todas button { border: 1px solid var(--tt-border); background: transparent; color: var(--tt-text); border-radius: 8px; padding: 3px 10px; font-size: .8rem; cursor: pointer; }
.cg-sorpresa { margin-top: 8px; border: 1px solid var(--tt-border); border-radius: 10px; font-size: .85rem; }
.cg-sorpresa summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
.cg-sorpresa summary::-webkit-details-marker { display: none; }
.cg-sorpresa b { color: var(--tt-strong); }
.cg-sor-alto { border-color: var(--lab, #5aa9ff); background: rgba(90,169,255,.12); }
.cg-sor-normal { border-color: rgba(90,169,255,.55); }
.cg-sor-det { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.cg-sor-det p { margin: 0; }
.cg-sor-det small { display: block; color: var(--tt-muted); margin-bottom: 3px; }
.lab-chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--tt-border); }
.lab-chip.sube { border-color: var(--lab, #5aa9ff); }
.lab-chip.baja { border-color: #39b26a; }
.lab-chip.off { opacity: .5; text-decoration: line-through; }
.lab-consejo { color: var(--tt-strong); font-weight: 600; }
.cb-sorpresa a { color: var(--tt-gold-ink); }
@media (max-width: 767px) { .lab-controles { grid-template-columns: 1fr; } .vip-lab { padding: 14px; } .lab-todas { margin-left: 0; } }

/* "Qué cuenta" + gráfica por partido (Eloi 2026-11-24): lado Local/Visitante, lesiones en naranja */
.vip-lab { --les: #ff9f43; }
.lab-controles { grid-template-columns: 1fr; }
.lab-fila-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.lab-ctl-t { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tt-muted); min-width: 64px; }
.lab-fila-ctl .lab-senales { flex: 1 1 300px; }
.lab-lado { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--tt-border); border-radius: 999px; padding: 4px 10px; font-size: .85rem; cursor: pointer; font-weight: 600; }
.lab-lado.l { border-color: var(--tt-local); color: var(--tt-local); } .lab-lado.l input { accent-color: var(--tt-local); }
.lab-lado.v { border-color: var(--tt-visita); color: var(--tt-visita); } .lab-lado.v input { accent-color: var(--tt-visita); }
.lab-lado.les { border-color: var(--les); color: var(--les); } .lab-lado.les input { accent-color: var(--les); }
.lab-lado:has(input:not(:checked)) { opacity: .5; }
.lab-les-txt { font-size: .8rem; }
.lab-graf { margin-top: 10px; border: 1px solid var(--tt-border); border-radius: 10px; padding: 10px; font-size: .85rem; }
.lab-graf-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 600; color: var(--tt-strong); margin-bottom: 6px; }
.lab-graf-t b { color: var(--lab); }
.lab-tug { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.lab-tug-bar { position: relative; display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--tt-border); }
.lab-tug-bar span { display: block; height: 100%; transition: width .25s ease; }
.lab-tug-bar .l { background: var(--tt-local); } .lab-tug-bar .v { background: var(--tt-visita); }
.lab-ini { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.lab-tug-txt { color: var(--tt-muted); font-size: .8rem; margin: 6px 0 4px; }
.lab-ejes { display: flex; justify-content: space-between; font-size: .72rem; color: var(--tt-muted); border-bottom: 1px dashed var(--tt-border); padding-bottom: 3px; margin-bottom: 4px; }
.lab-filas { display: flex; flex-direction: column; gap: 3px; }
.lab-fila { display: grid; grid-template-columns: 1fr minmax(96px, auto) 1fr; align-items: center; gap: 6px; }
.lab-izq { display: flex; justify-content: flex-end; } .lab-der { display: flex; justify-content: flex-start; }
.lab-izq, .lab-der { height: 10px; }
.lab-b { display: block; height: 10px; border-radius: 3px; transition: width .25s ease; }
.lab-b.l { background: var(--tt-local); } .lab-b.v { background: var(--tt-visita); } .lab-b.les { background: var(--les); }
.lab-nom { text-align: center; font-size: .76rem; line-height: 1.15; }
.lab-fila.off .lab-b { background: transparent; border: 1px dashed var(--tt-muted); }
.lab-fila.off .lab-nom { color: var(--tt-muted); text-decoration: line-through; }
.lab-mas summary { cursor: pointer; color: var(--lab); font-size: .8rem; margin-top: 4px; }
.lab-graf.cg-sor-alto { border-color: var(--lab); background: rgba(90,169,255,.08); }

/* Casillas en dos columnas: a favor del local / del visitante (Eloi 2026-11-24) */
.lab-senales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.lab-col { display: flex; flex-wrap: wrap; gap: 6px; border-radius: 10px; padding: 8px; border: 1px solid var(--tt-border); }
.lab-col-l { border-color: var(--tt-local); } .lab-col-v { border-color: var(--tt-visita); }
.lab-col-t { flex: 1 1 100%; font-size: .78rem; font-weight: 700; }
.lab-col-l .lab-col-t { color: var(--tt-local); } .lab-col-v .lab-col-t { color: var(--tt-visita); }
.lab-col-l .lab-senal input { accent-color: var(--tt-local); } .lab-col-v .lab-senal input { accent-color: var(--tt-visita); }
.lab-senales .lab-todas { grid-column: 1 / -1; margin-left: 0; }
@media (max-width: 767px) { .lab-senales { grid-template-columns: 1fr; } }

/* Favorito vs sorpresa (Eloi 2026-11-24): dorado = favorito, morado = sorpresa */
.vip-lab { --sor: #b388ff; }
.lab-lado.f { border-color: var(--tt-gold); color: var(--tt-gold-ink); } .lab-lado.f input { accent-color: var(--tt-gold); }
.lab-lado.s { border-color: var(--sor); color: var(--sor); } .lab-lado.s input { accent-color: var(--sor); }
.lab-col-f { border-color: var(--tt-gold); } .lab-col-s { border-color: var(--sor); }
.lab-col-f .lab-col-t { color: var(--tt-gold-ink); } .lab-col-s .lab-col-t { color: var(--sor); }
.lab-col-f .lab-senal input { accent-color: var(--tt-gold); } .lab-col-s .lab-senal input { accent-color: var(--sor); }
.lab-fav { font-style: normal; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--tt-gold); color: var(--tt-gold-ink); vertical-align: middle; }

/* Renglones de la grafica como casillas por partido (Eloi 2026-11-24) */
label.lab-fila { cursor: pointer; margin: 0; }
label.lab-fila:hover .lab-nom { color: var(--tt-strong); }
.lab-nom input { width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; accent-color: var(--lab, #5aa9ff); }
.lab-mano { font-size: .75rem; color: var(--tt-muted); margin: 2px 0 6px; }
.lab-mano button { border: 1px solid var(--lab, #5aa9ff); background: transparent; color: var(--lab, #5aa9ff); border-radius: 6px; padding: 1px 8px; font-size: .75rem; cursor: pointer; }

/* Mi cuenta (/mi-cuenta) */
.mc-grid .mc-yo, .mc-grid .hv-aviso, .mc-grid .mc-entrar { grid-column: 1 / -1; }
.mc-yo { display: flex; align-items: center; gap: 14px; padding: 16px 22px; }
.mc-yo img { border-radius: 50%; flex: 0 0 auto; }
.mc-yo b { color: var(--tt-strong); font-size: 1.1rem; }
.mc-chico { font-size: .82rem; }
.mc-vip.on { border-color: rgba(245, 184, 61, .6); }
.mc-vip h2, .mc-form h2, .mc-entrar h2 { font-size: 1.25rem; color: var(--tt-strong); margin-bottom: 6px; }
.mc-vip h3 { font-size: 1rem; color: var(--tt-strong); margin: 0 0 6px; }
.mc-datos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 16px; }
.mc-datos dt { color: var(--tt-muted); font-weight: 500; }
.mc-datos dd { margin: 0; color: var(--tt-strong); font-weight: 600; }
.mc-cancelar { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tt-border); }
.mc-ayuda { font-size: .85rem; margin: 14px 0 0; }
.mc-campo { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.mc-campo label, .mc-campo legend { display: block; font-size: .9rem; font-weight: 600; color: var(--tt-text); margin-bottom: 6px; float: none; width: auto; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--tt-border); border-radius: 999px; cursor: pointer; font-weight: 500 !important; margin: 0 !important; }
.mc-chip:has(input:checked) { border-color: var(--tt-green); background: rgba(34, 197, 94, .12); }
.mc-check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin: 4px 0 16px; cursor: pointer; }
.mc-check input { margin-top: 4px; }
.mc-pie { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mc-msg { margin: 0; font-size: .9rem; color: var(--tt-green); }
.mc-msg.err { color: var(--tt-bad, #ef4444); }
@media (max-width: 860px) { .mc-datos { grid-template-columns: minmax(0, 1fr); gap: 2px; } .mc-datos dd { margin-bottom: 8px; } }
.tt-cuenta { margin-bottom: 8px; text-decoration: none; color: inherit; }
.tt-cuenta:hover { border-color: var(--tt-green); color: var(--tt-green); }
.mc-input { display: block; width: 100%; padding: .45rem .75rem; font-size: 1rem; color: var(--tt-text); background: transparent; border: 1px solid var(--tt-border); border-radius: 6px; }
.mc-input:focus { outline: 2px solid var(--tt-green); outline-offset: 1px; }
.mc-chip input, .mc-check input { margin: 0 2px 0 0; accent-color: var(--tt-green); }
.mc-link { background: none; border: 0; padding: 0; color: var(--tt-muted); text-decoration: underline; font-size: .9rem; cursor: pointer; }
.mc-link:hover { color: var(--tt-bad, #ef4444); }
.mc-panel { margin-top: 12px; padding: 14px; border: 1px solid rgba(239, 68, 68, .35); border-radius: 10px; }
.mc-lbl { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.mc-panel .mc-input { max-width: 220px; margin-bottom: 12px; text-transform: uppercase; }
.mc-peligro { border-color: var(--tt-bad, #ef4444) !important; color: var(--tt-bad, #ef4444) !important; }
.mc-peligro:disabled { opacity: .45; cursor: not-allowed; }
/* Mi cuenta: "Tu VIP está activo" dorado con brillo y diamantitos */
.mc-oro-caja { position: relative; display: inline-block; padding: 4px 6px 4px 0; overflow: hidden; }
.mc-vip h2.mc-oro { margin: 0; font-weight: 800; font-size: 1.45rem; color: #d4a017;
  background: linear-gradient(100deg, #b8860b 0%, #f5d76e 25%, #fff6c9 40%, #e6b422 55%, #b8860b 75%, #f5d76e 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: mc-brillo 4s linear infinite; filter: drop-shadow(0 1px 0 rgba(120, 80, 0, .25)); }
.mc-lluvia { position: absolute; inset: 0; pointer-events: none; }
.mc-diam { position: absolute; top: -12px; font-style: normal; color: #f5d76e; opacity: 0;
  text-shadow: 0 0 6px rgba(255, 223, 110, .9); animation: mc-caer 3.5s ease-in infinite; }
@keyframes mc-brillo { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes mc-caer { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; }
  80% { opacity: .9; } 100% { transform: translateY(46px) rotate(180deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mc-vip h2.mc-oro { animation: none; background-position: 40% 0; } .mc-lluvia { display: none; } }
/* Mi cuenta: mi boleto */
.mc-grid .mc-boleto { grid-column: 1 / -1; }
.mc-boleto > summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--tt-strong); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mc-boleto > summary::-webkit-details-marker { display: none; }
.mc-boleto > summary::after { content: '\25BE'; transition: transform .2s; }
.mc-boleto[open] > summary::after { transform: rotate(180deg); }
.mc-boleto > summary:focus-visible { outline: 2px solid var(--tt-accent, #3ddc84); outline-offset: 4px; }
.mc-boleto .mc-bol-cuerpo { margin-top: 14px; }
.mc-bol-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mc-boleto h2 { font-size: 1.25rem; color: var(--tt-strong); margin: 0; }
.mc-bol-sem { width: auto; min-width: 140px; }
.mc-bol-res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 6px 0 12px; font-size: 1.05rem; }
.mc-bol-res b { color: var(--tt-strong); }
.mc-bol-lista { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.mc-bol-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--tt-border); border-radius: 10px; }
.mc-bol-p.cerrado { opacity: .85; }
.mc-bol-eq { display: flex; flex-direction: column; min-width: 0; }
.mc-bol-eq b { color: var(--tt-text); overflow-wrap: anywhere; }
.mc-bol-picks { display: flex; gap: 6px; }
.mc-bol-b { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--tt-border); background: transparent; color: var(--tt-text); font-weight: 800; cursor: pointer; }
.mc-bol-b[aria-pressed="true"] { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
.mc-bol-b.mal[aria-pressed="true"] { background: var(--tt-bad, #ef4444); border-color: var(--tt-bad, #ef4444); }
.mc-bol-b.real { box-shadow: inset 0 0 0 2px var(--tt-gold, #f5b83d); }
.mc-bol-b:disabled { cursor: default; }
.mc-bol-b:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 2px; }
.mc-bol-fin { grid-column: 1 / -1; font-size: .82rem; color: var(--tt-muted); }
.mc-bol-fin.ok { color: var(--tt-green); }
.mc-bol-fin.mal { color: var(--tt-bad, #ef4444); }
.mc-bol-hist { margin-top: 14px; font-size: .9rem; }
.mc-bol-hist summary { cursor: pointer; font-weight: 600; }
.mc-bol-hist ul { margin: 8px 0 0; padding-left: 18px; color: var(--tt-muted); }
.mc-bol-mod { color: var(--tt-muted); font-size: .92rem; }
.mc-bol-copiar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.mc-bol-copiar-t { font-size: .9rem; font-weight: 600; margin-right: 2px; }
.mc-bol-mb { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tt-border); background: transparent; color: var(--tt-text); font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.mc-bol-mb:hover { border-color: var(--tt-green); color: var(--tt-green); }
.mc-bol-mb.vip { border-color: rgba(245, 184, 61, .7); color: var(--tt-gold, #c99a2e); }
.mc-bol-mb.bloq { opacity: .6; }
.mc-bol-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.mc-bol-chip { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--tt-border); background: transparent; color: var(--tt-muted); font-size: .74rem; font-weight: 600; cursor: pointer; }
.mc-bol-chip:disabled { cursor: default; }
.mc-bol-chip.vip { border-color: rgba(245, 184, 61, .6); }
.mc-bol-chip.ok { color: var(--tt-green); border-color: rgba(34, 197, 94, .5); }
.mc-bol-chip.mal { text-decoration: line-through; opacity: .7; }
.mc-bol-comb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 12px; font-size: .95rem; color: var(--tt-muted); }
.mc-bol-comb b { color: var(--tt-strong); }
.mc-bol-tipo { color: var(--tt-gold, #c99a2e); font-weight: 700; }
