/* Layout de Quinielocos. Idea: la hoja verde es el campo; su borde superior es la linea de medio campo. */
html, body { height: 100%; }
body { font-family: var(--font-body); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .display-font { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; }
a { text-underline-offset: 3px; }

/* ---------- pantallas de acceso ---------- */
.stage { min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.stage-top { padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem .25rem; text-align: center; }
.stage-logo { width: min(58vw, 250px); height: auto; display: block; margin: 0 auto; }
.sheet {
  position: relative; overflow: hidden; flex: 1;
  background: var(--qn-forest); color: #fff;
  border-radius: 2rem 2rem 0 0; padding: 2.25rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 2rem);
}
.sheet::before {            /* circulo central del campo */
  content: ""; position: absolute; left: 50%; top: -230px; width: 460px; height: 460px;
  transform: translateX(-50%); border: 2px solid rgba(255,255,255,.10); border-radius: 50%; pointer-events: none;
}
.sheet::after {             /* punto central */
  content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px;
  transform: translateX(-50%); border-radius: 50%; background: rgba(255,255,255,.14); pointer-events: none;
}
.sheet-inner { position: relative; z-index: 1; max-width: 420px; margin: 0 auto; }
.sheet h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); line-height: 1.08; margin: 0 0 .5rem; }
.sheet .lead { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 1.5rem; }
.sheet a:not(.btn) { color: var(--qn-lime); }
.sheet a:not(.btn):hover { color: #fff; }
.sheet :focus-visible { outline: 3px solid var(--qn-lime); outline-offset: 2px; }
.sheet .form-label { font-weight: 600; margin-bottom: .3rem; }
.sheet .form-control { min-height: 3rem; border: 0; font-size: 1rem; }
.sheet .form-text { color: rgba(255,255,255,.7); }
.sheet .btn { min-height: 3rem; font-size: 1.05rem; }
.field { margin-bottom: 1rem; }
.field-error { color: #FFD3C8; font-size: .9rem; font-weight: 600; min-height: 0; margin-top: .25rem; }
.field-error:empty { display: none; }
.form-control.is-bad { box-shadow: 0 0 0 3px #FF9C86; }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 4.8rem; }
.pw-toggle { position: absolute; right: .35rem; top: .35rem; bottom: .35rem; border: 0; background: transparent;
  color: var(--qn-green); font-weight: 700; padding: 0 .75rem; border-radius: .5rem; }
.sheet .alert { font-weight: 600; margin-bottom: 1rem; }
.sheet .alert a { color: var(--qn-forest); }
.sheet .aux { text-align: center; margin-top: 1.25rem; color: rgba(255,255,255,.82); }

/* marcador de la portada */
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.scoreboard li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; padding: .8rem .5rem; text-align: center; }
.scoreboard b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--qn-lime); }
.scoreboard span { display: block; font-size: .8rem; line-height: 1.2; margin-top: .35rem; color: rgba(255,255,255,.85); }

.status-icon { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; margin: 0 0 1rem;
  background: var(--qn-lime); color: var(--qn-forest); font-family: var(--font-display); font-size: 2rem; }
.status-icon.bad { background: #FFD3C8; }

/* ---------- app (sesion iniciada) ---------- */
.app-head { position: sticky; top: 0; z-index: 20; background: var(--qn-forest); }
.app-top { background: var(--qn-forest); color: #fff;
  padding: calc(env(safe-area-inset-top, 0px) + .6rem) 1rem .6rem; display: flex; align-items: center; gap: .75rem; }
.app-top img { width: 38px; height: 38px; border-radius: 12px; background: #fff; }
.app-top .brand { font-family: var(--font-display); font-size: 1.35rem; flex: 1; }
.app-top .btn { --bs-btn-padding-y: .3rem; }
.app-main { max-width: 640px; margin: 0 auto; padding: 1.25rem 1rem calc(env(safe-area-inset-bottom, 0px) + 5.5rem); }
.app-main h1 { font-size: 1.9rem; margin: 0 0 .15rem; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem;
  background: #E8F3DF; color: var(--qn-forest); }
.chip.lime { background: var(--qn-lime); }
.chip.dark { background: var(--qn-forest); color: #fff; }
.section-title { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.pool-card { background: #fff; border: 1px solid var(--qn-line); border-radius: 1rem; padding: 1rem; margin-bottom: .75rem; }
.pool-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.pool-card .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.note-card { border: 1px dashed #B8CCAE; border-radius: 1rem; padding: 1rem; color: var(--qn-muted); background: transparent; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--qn-forest);
  display: flex; padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom-nav a, .bottom-nav button { flex: 1; text-align: center; text-decoration: none; border: 0; background: transparent; color: rgba(255,255,255,.72); padding: .6rem 0 .55rem;
  font-size: .72rem; font-weight: 600; line-height: 1.1; }
.bottom-nav a .ico, .bottom-nav button .ico { display: block; font-size: 1.3rem; margin-bottom: .15rem; }
.bottom-nav a.active, .bottom-nav button.active { color: var(--qn-lime); }
.bottom-nav a:focus-visible, .bottom-nav button:focus-visible { outline: 3px solid var(--qn-lime); outline-offset: -3px; }
.snack { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem); transform: translateX(-50%);
  background: var(--qn-ink); color: #fff; padding: .6rem 1rem; border-radius: .75rem; font-weight: 600; z-index: 40; max-width: 90vw; }
.skeleton { height: 5rem; border-radius: 1rem; background: #E9EFE4; margin-bottom: .75rem; }

@media (min-width: 768px) {
  .sheet { margin: 0 auto; width: min(100%, 560px); border-radius: 2rem 2rem 0 0; }
  .stage { background: #fff; }
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: qn-pulse 1.4s ease-in-out infinite; }
}
@keyframes qn-pulse { 50% { opacity: .55; } }

/* ---------- Fase 1: Jugar ---------- */
.pool-bar { background: var(--qn-forest); padding: 0 1rem .7rem; }
.pool-bar .form-select { background-color: #fff; font-weight: 600; min-height: 2.5rem; max-width: 640px; margin: 0 auto; display: block; }
.muted { color: var(--qn-muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .75rem; }
.stat { background: #fff; border: 1px solid var(--qn-line); border-radius: 1rem; padding: .75rem .5rem; text-align: center; }
.stat-k { display: block; font-size: .75rem; font-weight: 700; color: var(--qn-muted); text-transform: uppercase; letter-spacing: .02em; }
.stat-v { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--qn-forest); }
.stat-s { display: block; font-size: .75rem; color: var(--qn-muted); }
.note-card.ok { border-style: solid; border-color: #B8CCAE; background: #F1F8EC; color: var(--qn-forest); font-weight: 600; }
.pick-row { display: block; background: #fff; border: 1px solid var(--qn-line); border-radius: 1rem; padding: .75rem 1rem; margin-bottom: .6rem; color: inherit; text-decoration: none; }
a.pick-row:hover { border-color: #B8CCAE; }
.mini-teams { display: flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; flex-wrap: wrap; text-align: center; }
.mini-teams .vs { font-weight: 400; color: var(--qn-muted); font-size: .8rem; }
.row-meta { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; font-size: .85rem; color: var(--qn-muted); }
.countdown { font-weight: 700; color: var(--qn-forest); font-variant-numeric: tabular-nums; }
.pts-chip { display: inline-block; font-weight: 800; font-size: .85rem; border-radius: 999px; padding: .1rem .65rem; background: var(--qn-lime); color: var(--qn-forest); }
.pts-chip.zero { background: #E9EFE4; color: var(--qn-muted); }
.flag { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; }
.flag img { width: 28px; height: 28px; object-fit: contain; }
.flag-fallback { border-radius: 50%; background: var(--qn-forest); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.day-title { font-size: .85rem; font-weight: 700; text-transform: capitalize; color: var(--qn-muted); margin: 1.25rem 0 .5rem; }
.match-card { background: #fff; border: 1px solid var(--qn-line); border-radius: 1.1rem; padding: .85rem; margin-bottom: .75rem; }
.match-card[data-state="open"] { border-color: #B8CCAE; box-shadow: 0 1px 0 rgba(15,61,26,.06); }
.match-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--qn-muted); margin-bottom: .6rem; }
.match-meta .when { flex: 1; font-weight: 600; text-transform: capitalize; }
.state-chip.s-open { background: var(--qn-lime); }
.state-chip.s-live { background: #FFD3C8; color: #7A1D00; }
.state-chip.s-closed, .state-chip.s-locked, .state-chip.s-cancelled { background: #E9EFE4; color: var(--qn-muted); }
.state-chip.s-played { background: var(--qn-forest); color: #fff; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: .5rem; }
.match-teams .side { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.match-teams .side .flag { width: 40px; height: 40px; flex-basis: 40px; }
.match-teams .side .flag img { width: 40px; height: 40px; }
.match-teams .side .flag-fallback { font-size: .8rem; }
.match-teams .tname { font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.match-teams .mid { align-self: center; color: var(--qn-muted); font-weight: 700; }
.score-box { font-family: var(--font-display); font-size: 1.8rem; color: var(--qn-forest) !important; white-space: nowrap; }
.stepper { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.btn-step { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--qn-forest); background: #fff; color: var(--qn-forest);
  font-size: 1.5rem; line-height: 1; font-weight: 700; }
.btn-step:active { background: var(--qn-lime); }
.btn-step:focus-visible, .seg-btn:focus-visible { outline: 3px solid var(--qn-forest); outline-offset: 2px; }
.goals { min-width: 2.2rem; text-align: center; font-family: var(--font-display); font-size: 2rem; color: var(--qn-forest); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .75rem; }
.seg-btn { min-height: 2.75rem; border-radius: .8rem; border: 2px solid var(--qn-forest); background: #fff; color: var(--qn-forest); font-weight: 700; }
.seg-btn[aria-pressed="true"] { background: var(--qn-forest); color: #fff; }
.match-foot { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.match-foot .btn { min-width: 6.5rem; min-height: 2.5rem; }
.save-msg { font-size: .9rem; font-weight: 600; color: var(--qn-forest); }
.save-msg.bad { color: #A12600; }
.pick-ro { font-weight: 600; flex: 1; }
.table-standings { background: #fff; border-radius: 1rem; overflow: hidden; margin-bottom: 0; }
.table-standings th { font-size: .75rem; text-transform: uppercase; color: var(--qn-muted); white-space: nowrap; }
.table-standings .num { text-align: right; }
.table-standings tr.me { background: #F1F8EC; font-weight: 700; }
.table-standings tr.gap td { text-align: center; color: var(--qn-muted); }
.rules h2 { font-size: 1.3rem; margin: 1.5rem 0 .6rem; }
.rules h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.rules .rule-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 1rem; padding: 1rem; margin-bottom: .75rem; }
.rules .rule-card p:last-child { margin-bottom: 0; }
.rules .scoreboard { margin: .75rem 0 0; }
.rules .scoreboard.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- Fase 2: Resultados, menu «Mas» y pantallas de plataforma ---------- */
.more-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(16,26,15,.55); display: flex; align-items: flex-end; justify-content: center; }
.more-panel { background: #fff; width: min(100%, 640px); max-height: 85dvh; overflow-y: auto; border-radius: 1.5rem 1.5rem 0 0;
  padding: .6rem 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem); }
.more-grip { width: 3rem; height: .3rem; border-radius: 99px; background: #D5DFCE; margin: 0 auto .6rem; }
.more-title { font-size: 1.3rem; margin: 0 0 .5rem; }
.more-sec { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--qn-muted); margin: 1rem 0 .25rem; font-family: var(--font-body); }
.more-link { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3rem; padding: .5rem .25rem; border: 0; background: transparent;
  color: var(--qn-ink); text-decoration: none; font-weight: 600; font-size: 1rem; text-align: left; border-bottom: 1px solid #EEF3EA; }
.more-link .ico { font-size: 1.35rem; width: 1.8rem; text-align: center; }
.more-link .lbl { flex: 1; }
.more-link .soon { font-size: .72rem; font-weight: 700; color: var(--qn-muted); background: #E9EFE4; border-radius: 99px; padding: .1rem .5rem; }
.more-link:focus-visible { outline: 3px solid var(--qn-forest); outline-offset: -2px; border-radius: .5rem; }
.badge-count { background: #C23B00; color: #fff; font-size: .75rem; font-weight: 800; border-radius: 99px; min-width: 1.4rem; text-align: center; padding: .05rem .4rem; }

.stat-grid.two { grid-template-columns: repeat(2, 1fr); }
.official { font-size: .85rem; }
.result-teams .score-box { font-size: 2.2rem; }
.pts-big { font-weight: 800; }
.work-chip { font-size: .72rem; font-weight: 800; border-radius: 99px; padding: .1rem .6rem; background: #E9EFE4; color: var(--qn-muted); white-space: nowrap; }
.work-chip.w-awaiting_result { background: #FFD3C8; color: #7A1D00; }
.work-chip.w-to_apply { background: #FFF1B8; color: #5C4600; }
.work-chip.w-applied { background: var(--qn-forest); color: #fff; }
.work-chip.w-scheduled { background: #E8F3DF; color: var(--qn-forest); }
.work-chip.w-cancelled { background: #E9EFE4; color: var(--qn-muted); text-decoration: line-through; }
.score-inputs { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .25rem; }
.score-inputs input { width: 5.2rem; padding-inline: .25rem; min-height: 3rem; text-align: center; font-family: var(--font-display); font-size: 1.8rem; color: var(--qn-forest);
  border: 2px solid var(--qn-forest); border-radius: .8rem; background: #fff; -moz-appearance: textfield; }
.score-inputs input::-webkit-outer-spin-button, .score-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-inputs input:focus-visible { outline: 3px solid var(--qn-lime); outline-offset: 2px; }
.score-inputs .dash { font-weight: 700; color: var(--qn-muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; align-items: center; }
.card-actions .btn { min-height: 2.5rem; }
.inline-msg { font-size: .88rem; font-weight: 600; color: var(--qn-forest); flex-basis: 100%; }
.inline-msg.bad { color: #A12600; }
.picks-note { font-size: .82rem; color: var(--qn-muted); margin-top: .5rem; }
.filter-bar { display: grid; gap: .5rem; margin-bottom: 1rem; }
.filter-bar.cols-2 { grid-template-columns: 1fr 1fr; }
.panel { background: #fff; border: 1px solid var(--qn-line); border-radius: 1rem; padding: 1rem; margin-bottom: .75rem; }
.panel h3 { font-size: 1.1rem; margin: 0 0 .6rem; }
.row-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid #EEF3EA; }
.row-line:last-child { border-bottom: 0; }
.row-line .grow { flex: 1; min-width: 8rem; font-weight: 600; }
.report-card .quote { background: #F6F8F4; border-left: 4px solid var(--qn-green-vivid); border-radius: .5rem; padding: .5rem .75rem; margin: .6rem 0; overflow-wrap: anywhere; }
.report-card .who { font-size: .85rem; color: var(--qn-muted); }
.status-chip { font-size: .72rem; font-weight: 800; border-radius: 99px; padding: .1rem .6rem; }
.status-chip.ABIERTO { background: #FFF1B8; color: #5C4600; }
.status-chip.ATENDIDO { background: var(--qn-lime); color: var(--qn-forest); }
.status-chip.DESCARTADO { background: #E9EFE4; color: var(--qn-muted); }
.hint { font-size: .85rem; color: var(--qn-muted); }
.form-label.sm { font-size: .85rem; font-weight: 700; margin-bottom: .2rem; }

/* ======================================================================
   Fase 3 - Quinielas privadas y suscripciones
   ====================================================================== */
.sandbox-banner { background: #FFF1B8; color: #5C4600; border: 1px solid #E3C95A; border-radius: .75rem; padding: .55rem .8rem; font-weight: 700; font-size: .88rem; margin-bottom: .75rem; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { display: flex; flex-direction: column; margin-bottom: 0; }
.plan-card h3 { font-size: 1.15rem; }
.plan-price { font-family: var(--qn-display, inherit); font-size: 1.5rem; font-weight: 800; color: var(--qn-forest); margin: .35rem 0; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 .9rem; flex-grow: 1; }
.plan-feats li { padding: .15rem 0 .15rem 1.3rem; position: relative; color: var(--qn-ink, #1d2b1f); }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--qn-forest); font-weight: 800; }
.confirm-box { border: 2px solid var(--qn-forest); }
.confirm-box:focus { outline: none; }
.sub-chip { font-size: .75rem; font-weight: 800; border-radius: 99px; padding: .15rem .65rem; background: #E9EFE4; color: var(--qn-muted); }
.sub-chip.ok { background: var(--qn-lime); color: var(--qn-forest); }
.sub-chip.warn { background: #FFF1B8; color: #5C4600; }
.sub-chip.bad { background: #FBD9CC; color: #A12600; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--qn-line); font-size: .93rem; }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--qn-muted); }
.kv .v { text-align: right; }
.change-row, .pay-row, .member-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--qn-line); }
.member-row { border: 1px solid var(--qn-line); padding: .6rem .8rem; margin-bottom: .5rem; }
.pay-row:last-child, .change-row:last-of-type { border-bottom: 0; }
.chip.warn { background: #FFF1B8; color: #5C4600; }
.tabs-pill { display: flex; gap: .35rem; overflow-x: auto; margin: 1rem 0 .75rem; padding-bottom: .25rem; }
.tabs-pill [role=tab] { flex: 1 0 auto; border: 1px solid var(--qn-line); background: #fff; border-radius: 99px; padding: .45rem .95rem; font-weight: 700; color: var(--qn-forest); min-height: 2.5rem; }
.tabs-pill [role=tab][aria-selected=true] { background: var(--qn-forest); color: #fff; border-color: var(--qn-forest); }
.code-big { font-family: var(--qn-display, inherit); font-size: 2.1rem; letter-spacing: .18em; font-weight: 800; color: var(--qn-forest); margin: .15rem 0 .6rem; word-break: break-all; }
.qr-img { display: block; margin: 0 auto; max-width: 100%; height: auto; border: 1px solid var(--qn-line); border-radius: .75rem; background: #fff; }
.danger-zone { border-color: #E8B7A6; }
.note-card.notice { border-style: solid; border-color: #E3C95A; background: #FFF9DB; color: #5C4600; margin-bottom: .75rem; }
.who { color: var(--qn-muted); font-size: .9rem; }

/* ---------- Fase 4: campana, bandeja de avisos, perfil y detalle de partido ---------- */
.app-top .bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; margin-right: 6px; border-radius: 50%; color: #fff; text-decoration: none; font-size: 1.25rem; }
.app-top .bell + #logout { margin-left: 0; }
.app-top .bell:focus-visible { outline: 3px solid var(--qn-lime, #C6F432); outline-offset: 2px; }
.app-top .bell .badge-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D92D20; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.notif { display: flex; align-items: flex-start; gap: .75rem; width: 100%; padding: .75rem .85rem; margin-bottom: .5rem; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: #fff; color: inherit; text-align: left; }
.notif.unread { border-color: rgba(15,61,26,.35); background: #F3FAEA; }
.notif:focus-visible { outline: 3px solid var(--qn-green, #0F3D1A); outline-offset: 2px; }
.notif-ico { font-size: 1.4rem; line-height: 1.2; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notif-title { font-weight: 700; overflow-wrap: anywhere; }
.notif-body { overflow-wrap: anywhere; }
.notif-time { font-size: .8rem; color: #5b6b5f; margin-top: .15rem; }
.notif-dot { width: 10px; height: 10px; margin-top: .35rem; border-radius: 50%; background: #D92D20; flex: none; }
.pref-row { padding: .6rem 0 .6rem 2.5rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.pref-row:last-child { border-bottom: 0; }
.pref-row .form-check-input { width: 2.4em; height: 1.3em; margin-left: -2.5rem; }
.match-head { padding: .9rem; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.08); }
.match-head .match-teams { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.match-head .match-score { font-size: 1.6rem; font-weight: 800; white-space: nowrap; }
.stat-ai { border-left: 4px solid var(--qn-lime, #C6F432); }
.stat-ai-inline { margin-top: .6rem; font-size: .9rem; }
.stat-ai-inline summary { cursor: pointer; font-weight: 600; }
.match-link { display: inline-block; margin-top: .6rem; font-size: .9rem; font-weight: 600; }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #e6ebe7; }
.split-bar .seg-h { background: #0F3D1A; } .split-bar .seg-d { background: #8aa38f; } .split-bar .seg-a { background: #C6F432; }
.split-legend { display: flex; justify-content: space-between; gap: .5rem; margin-top: .25rem; color: #3b4a40; }
.group-list { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: #fff; }
.group-row { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.group-row:last-child { border-bottom: 0; }
.group-row.me { background: #F3FAEA; font-weight: 700; }
.group-row .g-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.group-row .g-pick { white-space: nowrap; }
.group-row .g-pts { min-width: 2.2em; text-align: right; font-weight: 700; }
.push-offer .btn { margin-top: .25rem; }

/* v0.5.1 — clickwrap y paginas legales */
.consent .form-check { display: flex; gap: .6rem; align-items: flex-start; padding-left: 0; }
.consent .form-check-input { float: none; margin: .2rem 0 0; flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; }
.consent .form-check-label { font-weight: 500; line-height: 1.35; }
.sheet-inner.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin: 1.75rem 0 .5rem; color: var(--qn-lime); }
.legal p, .legal li { line-height: 1.55; }
.legal ul { padding-left: 1.2rem; }
.legal .notice { background: rgba(0,0,0,.22); border-left: 4px solid var(--qn-lime); border-radius: .5rem; padding: .85rem 1rem; margin: 1rem 0; }
.legal .meta { color: rgba(255,255,255,.75); font-size: .95rem; }
.legal .tbl { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal th, .legal td { border-bottom: 1px solid rgba(255,255,255,.2); padding: .45rem .5rem; text-align: left; vertical-align: top; }

/* v0.5.3a - Acceso con Google / Facebook (login, registro y Perfil -> Apps conectadas) */
.social-sep { display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0 1rem; color: rgba(255,255,255,.78); font-size: .9rem; }
.social-sep::before, .social-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.28); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; background: #fff; color: #1f2937; border: 1px solid #fff; font-weight: 600; }
.btn-social:hover, .btn-social:focus-visible { background: #f1f5ef; color: #101A0F; border-color: #f1f5ef; }
.btn-social:disabled { opacity: .65; }
.btn-social svg { flex: none; }
