#uc-copa-results-overlay[hidden]{display:none!important}
#uc-copa-results-overlay{position:fixed;inset:0;z-index:12000;background:#0009;display:flex;align-items:center;justify-content:center;padding:12px}
#uc-copa-results-overlay .uc-elo-panel{width:min(760px,100%);max-height:90dvh;overflow:auto;box-sizing:border-box;background:var(--uc-ui-groups-surface,#fffaf0);color:var(--uc-ui-groups-text,#234951);padding:20px;border-radius:16px}
#uc-copa-results-overlay h2{color:inherit}
/* Mismas clases y superficie que las filas del historial de Desafíos. */
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-line{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;margin:6px 0;background:#fffaf0;color:var(--uc-ui-groups-text,#234951);border:1px solid var(--uc-ui-color-234951,#234951);border-radius:var(--uc-theme-border-radius-80539d41,8px);overflow-wrap:anywhere}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-match-line{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;width:100%;min-width:0}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-identity{display:flex;align-items:center;gap:5px;min-width:0;font-size:14px}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-identity:last-child{flex-direction:row-reverse;text-align:right}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-match-score{font-size:20px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-crest{display:inline-flex;flex:0 0 26px!important;align-items:center;justify-content:center;width:26px;height:28px;font-size:10px!important}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-crest img,:is(#uc-copa-results-body,.uc-match-history) .uc-copa-crest .fan-crest{width:26px;height:28px;max-width:100%;object-fit:contain;margin:0}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-meta{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;width:100%;font-size:11px;line-height:1.3}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-elo-change{white-space:nowrap}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-toggle{margin-left:auto;font-size:12px;padding:5px 9px;width:auto;min-height:0}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-detail{flex:1 1 100%;width:100%;min-width:0;overflow-x:auto}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-detail[hidden]{display:none!important}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;color:inherit}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table th,:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table td{padding:6px 5px;text-align:right;border-bottom:1px solid rgba(24,60,66,.15);vertical-align:top;font-variant-numeric:tabular-nums}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table th:first-child,:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table td:first-child{text-align:left;width:60%}
:is(#uc-copa-results-body,.uc-match-history) .uc-friend-match-table th{font-weight:700}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-elo{font-size:11px;margin:6px 0 0}
@media(max-width:600px){#uc-copa-results-overlay .uc-elo-panel{padding:12px}:is(#uc-copa-results-body,.uc-match-history) .uc-friend-line{padding:7px}:is(#uc-copa-results-body,.uc-match-history) .uc-copa-match-line{gap:4px}:is(#uc-copa-results-body,.uc-match-history) .uc-copa-identity{font-size:12px;gap:3px}:is(#uc-copa-results-body,.uc-match-history) .uc-copa-match-score{font-size:18px}}

/* Resultado legible por texto y símbolo, además del color. */
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-meta .uc-copa-outcome{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:5px;font-size:12px;font-weight:800;white-space:nowrap;line-height:1.2}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-meta .uc-copa-outcome.uc-copa-outcome-win{color:#146c35;background:#e2f5e8}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-meta .uc-copa-outcome.uc-copa-outcome-loss{color:#a52323;background:#fde8e8}
:is(#uc-copa-results-body,.uc-match-history) .uc-copa-meta .uc-copa-outcome.uc-copa-outcome-draw{color:#805200;background:#fff1ce}

/* Celular: ventana de resultados al 75% del alto, con lista desplazable. */
@media(max-width:899px){
 #uc-copa-results-overlay .uc-elo-panel{height:75vh;height:75dvh;max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden}
 #uc-copa-results-overlay .uc-elo-panel> :not(:is(#uc-copa-results-body,.uc-match-history)){flex-shrink:0}
 :is(#uc-copa-results-body,.uc-match-history){flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
}

/* Mis desafíos y Copa: ventana verde, tarjetas crema. */
:is(#uc-elo-overlay,#uc-copa-results-overlay) .uc-elo-panel{background:var(--uc-ui-dialog-surface,#173a32)!important;color:var(--uc-ui-dialog-text,#fff7dc)!important}
:is(#uc-elo-overlay,#uc-copa-results-overlay) .uc-elo-panel> :is(h2,h3,p,#uc-elo-profile),#uc-elo-overlay #uc-elo-history> :is(h3,p){color:var(--uc-ui-dialog-text,#fff7dc)!important}
