:root {
  --accent: #0f766e;
  --team-a: #0f766e;
  --team-b: #c2410c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4fd1c5;
    --on-accent: #002b27;
    --team-a: #4fd1c5;
    --team-b: #fb923c;
  }
}

.center {
  text-align: center;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pair .mk-field {
  min-width: 0;
}
.sheet-actions {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}

/* Counters */
.counters {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.counter {
  display: grid;
  gap: 6px;
  padding: 12px 16px 16px;
}
.counter-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
}
.edit-mark {
  color: var(--muted);
  font-size: 1.2rem;
}
.counter-value {
  display: block;
  text-align: center;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.counter.reached .counter-value {
  color: var(--success);
}
.goal {
  display: grid;
  gap: 4px;
  text-align: center;
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.2s ease-out;
}
.counter.reached .bar span {
  background: var(--success);
}
.counter-buttons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 6px;
}
.counter-buttons .mk-button {
  min-height: 64px;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  touch-action: manipulation;
}

/* Scoreboard */
.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.side {
  display: grid;
  gap: 8px;
}
.side-tap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 240px;
  padding: 16px 8px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  touch-action: manipulation;
}
.side-a .side-tap {
  background: var(--team-a);
}
.side-b .side-tap {
  background: var(--team-b);
}
@media (prefers-color-scheme: dark) {
  .side-tap {
    color: #0b0b0c;
  }
}
.side-tap:active {
  filter: brightness(0.92);
}
.side-name {
  font-weight: 600;
  font-size: 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-score {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.side-minus {
  min-height: 48px;
}
.status {
  text-align: center;
  font-weight: 600;
  margin: 14px 0 0;
}
.board-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
