/* Beat: the four lane checkboxes under the screen, the song picker, and the offset slider made of checkboxes. */
.toy.beat .beat-lanes {
  --cell: 20px;
  display: grid;
  grid-template-columns: repeat(4, calc(var(--cell) * 3));
  column-gap: var(--cell);
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.toy.beat .beat-lane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.toy.beat .beat-lane input {
  width: min(56px, calc(var(--cell) * 3 - 6px));
  height: min(56px, calc(var(--cell) * 3 - 6px));
  margin: 0;
  cursor: pointer;
}

.toy.beat .beat-lane span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* phones tap the lanes on the screen itself */
@media (hover: none) and (pointer: coarse) {
  .toy.beat .beat-lanes {
    display: none;
  }
}

/* options: the songs on one row (a radio group, the chosen one raised like a key), the settings under it */
.toy.beat .toy-options {
  flex-direction: column;
  gap: 8px;
}

.toy.beat .beat-songs,
.toy.beat .beat-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.toy.beat .beat-songs {
  gap: 4px 6px;
}

.toy.beat .beat-settings {
  gap: 2px 22px;
}

.toy.beat .beat-song {
  padding: 6px 10px 6px 8px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.toy.beat .beat-song.on {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

.toy.beat .beat-song:has(input:disabled),
.toy.beat .beat-settings .toy-option:has(input:disabled) {
  cursor: default;
  color: var(--ink-3);
}

.toy.beat .beat-offset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 700;
}

.toy.beat .beat-offset span:first-child {
  margin-right: 3px;
}

.toy.beat .beat-offset input {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.toy.beat .beat-offset-val {
  min-width: 6.5ch;
  margin-left: 3px;
  text-align: left;
  color: var(--ink-2);
}
