/* =========================================================
   PlayGloba - match score keeper (/tools/match-score-keeper). Loaded with css="pages,forms,tools,score".
   Names start with sc- so they never clash with other pages.
   ========================================================= */
[hidden] { display: none !important; }

.sc-sports { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.sc-check input { width: 18px; height: 18px; accent-color: var(--green); }

/* ---------- scoreboard ---------- */
.sc-board { display: flex; flex-direction: column; gap: 14px; }
.sc-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.sc-meta strong { color: var(--green-dark); font-size: 13.5px; }

.sc-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 300px; padding: 18px 12px; border: 2px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow); text-align: center; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; user-select: none; transition: transform .08s, border-color .15s, background .15s;
}
.sc-side:not(:disabled):hover { border-color: var(--green-light); }
.sc-side:not(:disabled):active { transform: scale(.98); background: var(--green-soft); }
.sc-side:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }
.sc-side:disabled { cursor: default; opacity: .85; }
.sc-win { border-color: var(--green); background: var(--green-soft); opacity: 1 !important; }
.sc-name { max-width: 100%; font-size: 18px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sc-points { font-family: var(--display); font-size: 96px; font-weight: 900; line-height: 1; color: var(--ink); }
.sc-mini { font-size: 12.5px; color: var(--muted); }
.sc-hint { text-align: center; font-size: 13px; color: var(--muted); }
.sc-history { text-align: center; font-size: 14px; color: var(--text); min-height: 22px; }

.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sc-actions .btn:disabled { opacity: .5; cursor: not-allowed; }

.sc-result { padding: 20px; border-radius: var(--radius-lg); background: var(--green-soft); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.sc-result h2 { font-size: 24px; font-weight: 800; }
.sc-result p { font-size: 14px; }

.sc-share { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sc-share-img { width: 100%; max-width: 360px; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.sc-privacy { margin-top: 12px; }

@media (max-width: 600px) {
  .sc-side { min-height: 240px; }
  .sc-points { font-size: 76px; }
  .sc-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-side { transition: none; }
}
