/* Convocatoria exportada */
.ce-context { max-width: 49ch; color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 18px; }
.ce-context strong { color: var(--text); }
.ce-example { width: min(100%, 410px); margin-inline: auto; }
.ce-tabs { display: flex; padding: 4px; gap: 4px; border: 1px solid #344b57; border-radius: 9px; background: #0c1a24; margin-bottom: 12px; }
.ce-tabs[hidden], .ce-format[hidden] { display: none; }
.ce-tabs button { flex: 1; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 42px; cursor: pointer; color: #e2e9ec; background: transparent; border: 0; border-radius: 6px; }
.ce-tabs button[aria-pressed=true] { color: #12200c; background: var(--lime); }
.ce-format { text-align: center; }
.ce-sheet { display: block; border: 1px solid #364c59; border-radius: 10px; overflow: hidden; background: #010812; }
.ce-sheet img { display: block; height: auto; width: min(100%, 335px); margin-inline: auto; }
.ce-format figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.ce-format figcaption a { display: inline-flex; min-height: 44px; align-items: center; color: #c9e783; font-size: 14px; font-weight: 600; }
/* Vistas públicas del partido y de los resultados */
.hero.demo-intro { display: block; padding-block: clamp(24px,3.6vw,54px) clamp(22px,2.4vw,36px); }
.demo-intro h1 { max-width: 23ch; font-size: clamp(36px,4.2vw,65px); }
.demo-intro .intro { max-width: 79ch; font-size: clamp(15px,1.2vw,18px); margin-top: 14px; }
.demo-intro .actions { margin-top: 18px; }
.demo-section { padding-bottom: clamp(38px,4.3vw,74px); }
.pp-match.pm-full { scroll-margin-top: 14px; padding: clamp(15px,2.1vw,31px); }
.pm-full h2, .st-title h2 { font-size: clamp(21px,2.1vw,32px); line-height: 1.12; letter-spacing: -.035em; }
.pm-full .pm-header { padding-bottom: 15px; border-bottom: 1px solid #344c59; gap: 12px; flex-wrap: wrap; }
.pm-layout { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(22px,3vw,46px); padding-top: 19px; }
.pm-controls, .pm-roster { min-width: 0; }
.pm-match-name { font-size: clamp(15px,1.4vw,20px); font-weight: 650; }
.pm-match-name span { color: #abbbc3; font-size: .78em; margin-inline: 4px; }
.pm-full .pm-board { align-items: flex-start; background: #122632; border: 1px solid #324c5b; border-radius: 8px; padding: clamp(14px,2vw,24px); }
.pm-roster h3, .st-panel h3 { font-size: clamp(17px,1.4vw,22px); line-height: 1.3; letter-spacing: -.025em; }
.pm-help { margin: 5px 0 12px; font-size: 13px; line-height: 1.45; color: #bacbd4; }
.pm-roster table, .st-panel table { border-spacing: 0; border-collapse: collapse; width: 100%; }
.pm-roster th, .pm-roster td { font-size: 14px; border-bottom: 1px solid #2d4351; text-align: left; padding: 7px 5px; }
.pm-roster thead th { color: #b7cad3; font-size: 12px; }
.pm-roster td:last-child, .pm-roster thead th:last-child { text-align: right; }
.pm-number { color: #bad976; display: inline-block; min-width: 24px; font-size: 12px; font-variant-numeric: tabular-nums; }
.pm-position { color: #b6c4ca; }
.pm-roster .is-on .pm-position { color: #c6e874; }
.pm-minutes, .pm-full .pm-board b { font-variant-numeric: tabular-nums; }
.pm-sub { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.pm-sub label { min-width: 0; font-size: 13px; color: #d0dce1; }
.pm-sub select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 6px 7px; background: #142936; color: #eff5f7; border: 1px solid #455c69; border-radius: 6px; font: inherit; }
.pm-full .pm-sub button { grid-column: 1 / -1; border-color: #6d8550; color: #d5ec9e; }
#pm-log { margin-top: 15px; }
#pm-log h4 { font-size: 14px; margin: 0 0 5px; }
#pm-changes { padding: 0; list-style: none; max-height: 125px; overflow: auto; }
#pm-changes li { border-top: 1px solid #2d4351; padding: 7px 0; font-size: 12px; color: #c7d4dc; }
/* Panel de estadísticas */
.st-panel { padding: clamp(15px,2.2vw,33px); border-radius: 12px; background: #172a38; border: 1px solid #354c5e; color: #f4f6fa; }
.st-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.st-title > span { display: grid; place-items: center; width: 40px; height: 40px; background: #0c1c29; border: 1px solid #344a57; border-radius: 10px; color: #b8d749; }
.st-title small { margin-left: auto; color: #c1cfd5; font-size: 13px; }
.st-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.st-metric { background: #0c1a27; border: 1px solid #354b5d; border-radius: 8px; padding: clamp(13px,1.45vw,23px); }
.st-metric dt, .st-metric small { font-size: 13px; color: #bcd0dd; line-height: 1.4; }
.st-metric dt { font-weight: 650; }
.st-metric strong { display: block; font-size: clamp(26px,2.5vw,38px); margin: 4px 0; line-height: 1.1; }
.st-metric:first-child strong, .st-metric:nth-child(6) strong { color: #bbd94d; }
.st-form { margin-block: 18px 24px; padding: 15px 18px; border: 1px solid #344e60; }
.st-form ol { display: flex; list-style: none; padding: 0; gap: 7px; margin-top: 10px; }
.st-form li { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.st-V { background: #236549; }.st-D { background: #98474d; }.st-E { background: #58656b; }
.st-players { border-top: 1px solid #354d5f; padding-top: 18px; }
.st-players p { font-size: 13px; line-height: 1.55; color: #c1d1dc; margin-block: 8px 14px; }
.st-scroll { overflow-x: auto; border: 1px solid #344b5b; border-radius: 8px; }
.st-scroll:focus-visible, .ce-tabs button:focus-visible, .pm-sub select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.st-panel table { font-size: 13px; min-width: 840px; text-align: center; }
.st-panel th, .st-panel td { padding: 10px 8px; border-bottom: 1px solid #304753; white-space: nowrap; }
.st-panel thead { background: #122331; color: #ccdde6; }
.st-panel abbr { text-decoration: none; }
.st-panel tbody tr:last-child > * { border-bottom: 0; }
.st-panel th:first-child { text-align: left; position: sticky; left: 0; background: #152735; }
.st-panel th span { display: inline-block; min-width: 23px; color: #b5cc83; font-size: 11px; }
@media (max-width: 790px) {
  .pm-layout { grid-template-columns: 1fr; }
  .st-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .st-title small { width: 100%; margin-left: 0; }
}
@media (max-width: 430px) {
  .pm-roster th,.pm-roster td { font-size: 12px; padding: 7px 3px; }
  .pm-number { min-width: 19px; }
  .st-metric dt,.st-metric small { font-size: 12px; }
  .pm-full .pm-header { display: block; }
}
