.cm-rules {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  line-height: 1.45;
}

.cm-rules ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.cm-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.cm-board-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.cm-board {
  display: grid;
  gap: 0.35rem;
  width: max-content;
  user-select: none;
}

.cm-cell {
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.15rem 0.35rem;
  border: 1px solid #c5c5c5;
  border-radius: 0.4rem;
  background: #f3f1ea;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-cell--blank {
  background: #fff;
  border-color: #1a1a1a;
  cursor: pointer;
}

.cm-cell--selected {
  outline: 3px solid #1d4e89;
  outline-offset: 1px;
}

.cm-cell--bad {
  background: #fde8e4;
  border-color: #9b2c2c;
}

.cm-cell--ok {
  background: #e5f4e8;
}

.cm-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 12rem;
}

.cm-bank,
.cm-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cm-tile {
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #1a1a1a;
  border-radius: 0.4rem;
  background: #fff;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.cm-tile--used {
  opacity: 0.35;
}

.cm-note {
  margin: 0;
  max-width: 36rem;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
