.gamepad-selector {
  width: calc(1em + 4px);
  height: calc(1em + 4px);
  padding: 3px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
  position: relative;
}

.gamepad-selector:hover {
  background-color: var(--background);
}

.gamepad-icon {
  width: 100%;
  height: 100%;
}

.mode-icon {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.9em;
  height: 0.9em;
  /* shadow */
  filter: drop-shadow(0px 0px 0.5px var(--background))
    drop-shadow(0px 0px 0.5px var(--background))
    drop-shadow(0px 0px 0.5px var(--background))
    drop-shadow(0px 0px 0.5px var(--background));
  pointer-events: none;
}
