/* ============================================================
   Quiniela Smart Drinks — Torneo screen styles
   ============================================================ */

/* ---------- hub segmented (scrollable pills) ---------- */
.hubseg { position: relative; display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 4px; scrollbar-width: none; }
.hubseg::-webkit-scrollbar { display: none; }
.hubseg__btn { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 600; font-size: 13.5px; color: var(--text-muted); background: var(--surface-2);
  border: 1px solid var(--border); white-space: nowrap; transition: color .2s, background .2s; }
.hubseg__btn.is-active { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.hubbody { padding-top: 2px; }

@keyframes slideR { from { opacity: .35; transform: translateX(7%); } to { opacity: 1; transform: none; } }
@keyframes slideL { from { opacity: .35; transform: translateX(-7%); } to { opacity: 1; transform: none; } }
.hubbody.slidein-r { animation: slideR .26s var(--ease); }
.hubbody.slidein-l { animation: slideL .26s var(--ease); }

/* day / group / round chips */
.dchip, .gchip, .rchip { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); font-weight: 600; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.dchip.is-active, .gchip.is-active, .rchip.is-active { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.dayhead { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-muted); padding: 14px 20px 6px; }

/* fixture card (programación) */
.fxlist { display: flex; flex-direction: column; gap: 10px; padding: 2px 16px; }
.fxcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-card); }
.fx__top { font-size: 11.5px; color: var(--text-faint); font-weight: 600; margin-bottom: 12px; }
.fx__body { display: flex; align-items: center; gap: 12px; }
.fxteams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 11px; }
.fxteam { display: flex; align-items: center; gap: 11px; }
.fxnm { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxsc { font-family: var(--font-display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.fxright { flex: none; padding-left: 14px; border-left: 1px solid var(--border); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; }
.fxr-lbl { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.fxr-time { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.fxvenue { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--border-2); font-size: 12px; color: var(--text-muted); font-weight: 600; }
.fxvenue .ico { display: grid; }
.fxchev { margin-left: auto; display: grid; color: var(--text-faint); }

/* glosario */
.gloss { margin: 10px 16px 4px; }
.gloss__h { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.gloss__row { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); align-items: baseline; }
.gloss__row b { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--accent); min-width: 66px; flex: none; }
.gloss__row span { font-size: 13px; color: var(--text-muted); }

/* la gran final */
.finalwrap { padding: 4px 0 8px; }
.finalhero { position: relative; margin: 6px 16px 8px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #2c1c06 0%, #150d04 60%, #0c0805 100%);
  padding: 24px 20px 22px; text-align: center; border: 1px solid #3a2a12; }
.finalglow { position: absolute; left: 50%; top: -12%; width: 240px; height: 240px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(228,182,96,.38), transparent 62%); pointer-events: none; }
.finaltrophy { position: relative; width: auto; height: 168px; margin: 0 auto 14px; display: block;
  object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(228,182,96,.25)); }
.finaltitle { position: relative; font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: .05em;
  background: linear-gradient(180deg, #f6dea4, #c8952e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finalsub { position: relative; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: #d8b878; margin-top: 5px; }
.finallabel { font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; padding: 14px 20px 8px; }
.fmatch { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 16px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 12px; box-shadow: var(--shadow-card); }
.fmatch__side { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.fmatch__shield { color: var(--text-faint); opacity: .7; display: grid; }
.fmatch__nm { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.fmatch__center { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.fmatch__date { font-size: 11px; color: var(--text-faint); font-weight: 600; white-space: nowrap; }
.fmatch__time { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.fmatch__lbl { font-size: 10px; color: var(--text-faint); font-weight: 600; }

/* ---------- tabla de grupos (standings) ---------- */
.seedlegend { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; text-transform: none;
  letter-spacing: 0; font-size: 10.5px; font-weight: 700; color: var(--accent); }
.seedlegend .ico { display: grid; color: var(--accent); }
.stbl { margin: 4px 16px 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden; }
.stbl__h { font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 12px 14px 8px; }
.strow { display: grid; grid-template-columns: 15px 1fr repeat(8, 21px); align-items: center;
  gap: 0 2px; padding: 0 11px; height: 38px; border-top: 1px solid var(--border); }
.strow--head { height: 28px; border-top: none; }
.strow--head .st-c, .strow--head .st-pos, .strow--head .st-team { font-size: 9.5px; font-weight: 700;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: .03em; }
.st-pos { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 11.5px; color: var(--text-muted); }
.st-team { display: flex; align-items: center; gap: 7px; min-width: 0; padding-left: 2px; }
.st-nm { flex: 1 1 auto; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-nm.is-seed { font-weight: 800; }
.st-star { display: grid; color: var(--accent); flex: none; }
.st-c { text-align: center; font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.st-dg { color: var(--text); }
.st-pts { font-weight: 700; color: var(--text); font-size: 12.5px; }
.strow.is-q1 { box-shadow: inset 3px 0 0 var(--accent); }
.strow.is-q2 { box-shadow: inset 3px 0 0 var(--accent-soft-bd); }
.strow.is-q1 .st-pos { color: var(--accent); }

.qlegend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 2px 20px 4px; }
.qlegend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.qlegend .qd { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.qlegend .qd--1 { background: var(--accent); }
.qlegend .qd--2 { background: var(--accent-soft-bd); }

/* ---------- cuadro de eliminación (bracket viewer) ---------- */
.bktwrap { position: relative; margin: 4px 0 6px; }
.bkt { display: flex; column-gap: 24px; overflow-x: hidden; overflow-y: auto;
  height: clamp(340px, calc(100dvh - 340px), 640px); padding: 4px 16px 12px;
  scrollbar-width: none; scroll-behavior: smooth; touch-action: pan-y; overscroll-behavior: contain; }
.bkt::-webkit-scrollbar { display: none; }
.koround { flex: 0 0 auto; display: flex; flex-direction: column; }
.bkt--pair .koround { flex: 1 1 0; min-width: 0; }
.bkt--pair { cursor: grab; user-select: none; -webkit-user-select: none; }
.bkt--pair.is-grabbing { cursor: grabbing; }
.bkt--pair .komatch, .bkt--pair .konm, .bkt--pair .kowhen { user-select: none; -webkit-user-select: none; }
.koround__hd { display: none; }
.koheads { display: flex; column-gap: 24px; padding: 2px 16px 6px; }
.kohead { flex: 1 1 0; min-width: 0; text-align: center; font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px; color: var(--text-muted); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.komatch { position: relative; box-sizing: border-box; height: 80px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 13px; padding: 8px 11px; display: flex; flex-direction: column;
  justify-content: center; gap: 7px; box-shadow: var(--shadow-card); }
.koround:not(:last-child) .komatch::after { content: ""; position: absolute; top: 50%; right: -24px;
  width: 24px; height: 2px; background: var(--border-2); }
.koround:not(:first-child) .komatch::before { content: ""; position: absolute; top: 50%; left: -2px;
  transform: translateY(-50%); width: 2px; height: var(--cs); background: var(--border-2); }
.kowhen { font-size: 10.5px; color: var(--text-faint); font-weight: 700; letter-spacing: .01em; }
.koslot { display: flex; align-items: center; gap: 8px; }
.koshield { display: grid; color: var(--text-faint); opacity: .7; flex: none; }
.konm { font-size: 12.5px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.bktnav { position: absolute; top: -2px; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center;
  box-shadow: var(--shadow-pop); transition: transform .12s var(--ease); }
.bktnav:active { transform: scale(.9); }
.bktnav--l { left: 12px; }
.bktnav--r { right: 12px; }

/* ---------- timeline ---------- */

/* ---------- timeline ---------- */
.tl { padding: 6px 18px 4px; }
.tlrow { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.tlrail { position: relative; display: flex; justify-content: center; }
.tlrail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  transform: translateX(-50%); background: var(--border-2); }
.tlrow:first-child .tlrail::before { top: 13px; }
.tlrow:last-child .tlrail::before { bottom: calc(100% - 13px); }
.tlnode { position: relative; z-index: 1; margin-top: 5px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-2); flex: none;
  display: grid; place-items: center; color: #fff; }
.tlnode--past { background: var(--text-faint); border-color: var(--text-faint); }
.tlnode--current { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); }
.tlnode--final { width: 22px; height: 22px; margin-top: 2px; background: var(--accent); border-color: var(--accent); }

.tlcard { padding: 2px 0 18px; }
.tldate { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .01em; }
.tltitle { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em;
  margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.tlmeta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.nowtag { font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.tlcard.is-current .tltitle { color: var(--accent); }
.tlcard.is-final { background: linear-gradient(150deg, var(--accent), var(--accent-press)); color: var(--accent-ink);
  border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.tlcard.is-final .tldate { color: color-mix(in oklab, var(--accent-ink) 82%, transparent); }
.tlcard.is-final .tlmeta { color: color-mix(in oklab, var(--accent-ink) 80%, transparent); }

/* ---------- cómo funciona ---------- */
.fmtlist { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px; }
.fmtcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 16px; box-shadow: var(--shadow-card); }
.fmtcard__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.fmtcard__head b { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; flex: 1; }
.fmtcard__date { font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fmtbullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fmtbullets li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }
.fmtbullets li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-soft-bd); }
.fmthl { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 11px 13px;
  background: var(--accent-soft); border-radius: 13px; color: var(--accent); }
.fmthl b { font-family: var(--font-display); font-weight: 600; font-size: 14px; }

/* ---------- distribución por país ---------- */
.dist { padding: 4px 16px; }
.distrow { padding: 12px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 8px; box-shadow: var(--shadow-card); }
.distrow__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.distmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.distdot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.distname { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.distnote { font-size: 11px; color: var(--text-faint); font-weight: 600; margin-top: 1px; }
.distn { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 18px; flex: none; }
.distbar { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.distbar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-press));
  min-width: 14px; transition: width .6s var(--ease); }
.disttotal { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px;
  margin-top: 2px; border-top: 1px dashed var(--border-2); }
.disttotal span { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.disttotal b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }

/* ---------- datos históricos ---------- */
.facts { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px; }
.fact { display: flex; gap: 13px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-card); }
.fact__ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.fact p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.fact p b { color: var(--text); font-weight: 700; }
