/* Score: a pencil score pad. Ruled paper, a blue margin line, the leader's total circled. */
:root { --page: #eef0ea; --card: #fdfdf9; --ink: #1c2420; --soft: #5f6b65; --line: #d7ddd5; --act: #2c6e8f; --on-act: #ffffff; --stop: #b3261e; --rule: #c8dbe6; --wide: 680px; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --page: #121411; --card: #1b1e1a; --ink: #eaf0ea; --soft: #a2ada6; --line: #313630; --act: #8fc8e6; --on-act: #06202d; --stop: #ff8a80; --rule: #24343c; color-scheme: dark; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.card h2 { margin-top: 0; }
.players { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.players li { display: flex; align-items: center; gap: 4px; background: var(--page); border-radius: 999px; padding: 4px 4px 4px 12px; font-weight: 700; }
.players button { min-height: 32px; padding: 0 10px; background: transparent; color: var(--soft); }
#addForm input { flex: 1; min-width: 0; }
.opts { justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; } .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.target { display: flex; align-items: center; gap: 6px; color: var(--soft); } .target input { width: 7em; }
.sheet { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; color: var(--soft); width: 2.5em; border-right: 2px solid #d9534f80; }
thead th { color: var(--ink); font-size: 15px; } tfoot td { font-weight: 800; font-size: 20px; border-bottom: 0; }
tfoot td.lead span { border: 2.5px solid var(--act); border-radius: 50%; padding: 2px 8px; }
.round { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; align-items: end; }
.round label { display: grid; gap: 4px; font-size: 14px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.round input { width: 100%; box-sizing: border-box; font-variant-numeric: tabular-nums; }
.msg { font-weight: 700; min-height: 1.4em; }
.past { list-style: none; padding: 0; } .past li { padding: 8px 0; border-bottom: 1px solid var(--line); } .past small { color: var(--soft); display: block; }
.round button { grid-column: 1 / -1; } .target { white-space: nowrap; }
