/* Informe del partido (report.html) */

.rep-hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.rep-hero::after { content: ''; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; background: var(--accent); opacity: .22; pointer-events: none; }
.rep-hero__in { position: relative; z-index: 1; padding-block: 32px 60px; display: grid; gap: 18px; }
.rep-hero__club { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.rep-hero__club .mono { box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.rep-hero__match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.rep-hero__team { font-weight: 800; font-size: clamp(1rem, 3vw, 1.5rem); letter-spacing: -.02em; }
.rep-hero__score { font-size: clamp(3.4rem, 14vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.rep-hero__sets { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rep-hero__sets span { background: color-mix(in srgb, var(--brand-ink) 16%, transparent); border-radius: 999px; padding: 5px 14px; font-weight: 700; font-size: .875rem; }
.rep-hero__sets .loss { opacity: .75; }
.rep-hero__meta { text-align: center; opacity: .9; font-weight: 600; }
.rep-hero__note { text-align: center; font-weight: 700; background: color-mix(in srgb, var(--brand-ink) 14%, transparent); border-radius: 12px; padding: 8px 12px; }

.rep { margin-top: -34px; position: relative; z-index: 2; display: grid; gap: 20px; }

.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 16px 18px; }
.kpi__v { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--brand-text); }
.kpi__l { font-weight: 700; margin-top: 6px; font-size: .9375rem; }
.kpi__s { color: var(--muted); font-size: .8125rem; }

.two { display: grid; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }

/* barra apilada de origen de puntos */
.stack-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--neutral-soft); margin: 4px 0 14px; }
.stack-bar span { display: block; height: 100%; min-width: 2px; }
.legend { display: grid; gap: 8px; }
.legend li { list-style: none; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; font-size: .9375rem; }
.legend ul { margin: 0; padding: 0; display: grid; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: block; }
.legend b { font-weight: 800; }
.seg-1 { background: var(--brand); } .seg-2 { background: color-mix(in srgb, var(--brand) 70%, #fff); }
.seg-3 { background: color-mix(in srgb, var(--brand) 45%, #fff); } .seg-4 { background: var(--accent); }
.seg-b1 { background: #C62828; } .seg-b2 { background: #E26D6D; } .seg-b3 { background: #F2A5A5; } .seg-b4 { background: #F8CACA; } .seg-b5 { background: #94A3B8; }

.awards { display: grid; gap: 10px; }
.award { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); }
.award__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font-weight: 800; flex: none; }
.award__t { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-text); }
.award__w { font-weight: 800; }
.award__d { color: var(--muted); font-size: .875rem; }

.tbl--players th, .tbl--players td { padding: 10px 10px; }
.tbl--players th.grp { text-align: center; background: var(--brand-soft); color: var(--brand-text); border-left: 1px solid var(--line); }
.tbl--players td.sep, .tbl--players th.sep { border-left: 1px solid var(--line); }
.tbl--players td.name { font-weight: 700; position: sticky; left: 0; background: var(--surface); }
.tbl--players th.name { position: sticky; left: 0; background: #FAFBFD; }
.tbl--players tr.tot td { font-weight: 800; background: #FAFBFD; }
.good { color: var(--good); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }

.rep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rep-foot { text-align: center; color: var(--muted); font-size: .875rem; margin: 10px 0 0; }

@media print {
  body { background: #fff; }
  .topbar, .rep-actions, .demo-banner, .no-print, #nav { display: none !important; }
  .rep-hero { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .rep { margin-top: -20px; }
  .tbl-wrap { overflow: visible; }
}

/* enlace público */
.rep-cta { display: grid; gap: 12px; }
@media (min-width: 700px) { .rep-cta { grid-template-columns: 1fr auto; align-items: center; } }
.shr { display: grid; gap: 6px; }
.shr__lead { color: var(--muted); font-size: .9375rem; }
.shr__h { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.shr__opts { display: grid; gap: 8px; margin-bottom: 14px; }
.shr__opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.shr__opt.is-on { border-color: var(--brand); background: var(--brand-soft); }
.shr__opt input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.shr__opt b { display: block; }
.shr__opt small { display: block; color: var(--muted); font-size: .8125rem; }
.shr__link { display: flex; gap: 8px; }
.shr__link input { flex: 1; min-width: 0; font-size: .8125rem; }
.shr__note { color: var(--muted); font-size: .8125rem; }
.shr__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* rachas y evolución del marcador */
.flow__best { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.flow__b { border-radius: 14px; padding: 10px 12px; display: grid; gap: 1px; background: var(--neutral-soft); border-left: 4px solid var(--muted); }
.flow__b--us { border-left-color: var(--brand); }
.flow__b--them { border-left-color: var(--bad); }
.flow__b small { color: var(--muted); font-weight: 700; font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; }
.flow__b b { font-size: 1.25rem; }
.flow__b span { color: var(--muted); font-size: .75rem; }
.flow__sets { display: grid; gap: 14px; }
.flow__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.flow__head span { font-weight: 800; color: var(--brand-text); }
.flow__head small { color: var(--muted); font-size: .75rem; margin-left: auto; }
.flow__svg { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
@media (min-width: 900px) { .flow__sets { grid-template-columns: 1fr 1fr; } }
