/* قائمة السكور ومربع النتيجة */
.score-title, .score-row {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) 46px 50px; gap: 8px; align-items: center; padding: 8px 6px;
}
.score-list.with-rounds .score-title, .score-list.with-rounds .score-row { grid-template-columns: 26px minmax(0, 1fr) 46px 50px 44px; }
.score-list.with-kick .score-title, .score-list.with-kick .score-row { grid-template-columns: 24px minmax(0, 1fr) 40px 42px 38px 34px; gap: 5px; }
.score-title { padding-block: 2px 6px; color: #a9bcc6; font-size: 12px; text-align: center; }
.score-title span:nth-child(2) { text-align: start; }
.score-row { border-radius: 10px; color: #f7f4ec; }
.score-row + .score-row { margin-top: 2px; }
.score-row:hover { background: #e9b44c; color: #241703; }
.score-row.me { outline: 2px solid #e9b44c; }
.score-row.off { opacity: .55; }
.score-rank { font-weight: 700; font-size: 17px; color: #a9bcc6; text-align: center; }
.score-row.first .score-rank { color: #f6d27e; }
.score-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.score-face {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%;
  background: #1b4a61; font-weight: 700; font-size: 15px; color: #f7f4ec;
}
.score-face img, .score-face svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.score-holder { position: relative; flex: none; display: block; width: 34px; height: 34px; }
.score-dot {
  position: absolute; inset-block-end: -1px; inset-inline-start: -1px; width: 12px; height: 12px; border: 2px solid #0b2a3c;
  border-radius: 50%; background: #8b98a0;
}
.score-dot.on { background: #4ade80; }
.score-kick {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08);
  color: inherit; font: inherit; font-size: 14px; cursor: pointer;
}
.score-kick:hover, .score-kick:focus-visible { background: #b42323; color: #fff; }
.score-wrong { grid-column: 2 / -1; margin-top: -4px; color: #a9bcc6; font-size: 12px; font-weight: 400; line-height: 1.4; }
.score-wrong.stopped { color: #fca5a5; font-weight: 600; }
.score-row:hover .score-wrong { color: #241703; }
.score-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; font-size: 15px; }
.score-num { text-align: center; font-variant-numeric: tabular-nums; color: #a9bcc6; font-size: 14px; }
.score-num.total { color: inherit; font-weight: 700; font-size: 18px; }
.score-num.plus { color: #4ade80; direction: ltr; }
.score-row:hover .score-rank, .score-row:hover .score-num { color: #241703; }

dialog.score-popup {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 20px; border: 0; border-radius: 18px;
  background: #0b2a3c; color: #f7f4ec; text-align: start;
}
dialog.score-popup::backdrop { background: rgba(0, 0, 0, .7); }
.score-popup h2 { margin: 0; font-size: 22px; font-weight: 800; text-align: center; color: #f6d27e; }
.score-popup > p { margin: 2px 0 12px; color: #a9bcc6; font-size: 14px; text-align: center; }
.score-popup .close {
  width: 100%; min-height: 48px; margin-top: 14px; border: 0; border-radius: 12px; background: #e9b44c; color: #241703;
  font: inherit; font-weight: 700; cursor: pointer;
}
